Package org.openrdf.model

Examples of org.openrdf.model.URI


  {
    MemoryStore store = new MemoryStore(dataDir);
    store.initialize();

    URIFactory factory = store.getURIFactory();
    URI foo = factory.createURI("http://www.foo.example/foo");
    URI bar = factory.createURI("http://www.foo.example/bar");

    SailConnection con = store.getConnection();
    con.addStatement(foo, RDF.TYPE, bar);

    TupleQueryModel query = QueryParserUtil.parseTupleQuery(QueryLanguage.SERQL,
View Full Code Here


  {
    MemoryStore store = new MemoryStore(dataDir);
    store.initialize();

    URIFactory factory = store.getURIFactory();
    URI foo = factory.createURI("http://www.foo.example/foo");

    StringBuilder sb = new StringBuilder(66000);
    for (int i = 0; i < 66000; i++) {
      sb.append('a');
    }
View Full Code Here

    while (ntIter.hasNext()) {
      Statement nt = ntIter.next();

      Resource xxx = nt.getSubject();
      URI aaa = nt.getPredicate();

      Cursor<? extends Statement> t1Iter;
      t1Iter = getDelegate().getStatements(aaa, RDFS.DOMAIN, null, true);

      Statement t1;
View Full Code Here

    Iterator<Statement> ntIter = newThisIteration.iterator();

    while (ntIter.hasNext()) {
      Statement nt = ntIter.next();

      URI aaa = nt.getPredicate();
      Value uuu = nt.getObject();

      if (uuu instanceof Resource) {
        Cursor<? extends Statement> t1Iter;
        t1Iter = getDelegate().getStatements(aaa, RDFS.RANGE, null, true);
View Full Code Here

    while (ntIter.hasNext()) {
      Statement nt = ntIter.next();

      Resource xxx = nt.getSubject();
      URI aaa = nt.getPredicate();
      Value yyy = nt.getObject();

      Cursor<? extends Statement> t1Iter;
      t1Iter = getDelegate().getStatements(aaa, RDFS.SUBPROPERTYOF, null, true);
View Full Code Here

    Iterator<Statement> iter = newThisIteration.iterator();

    while (iter.hasNext()) {
      Statement st = iter.next();

      URI predNode = st.getPredicate();
      String predURI = predNode.toString();

      if (predURI.startsWith(prefix) && isValidPredicateNumber(predURI.substring(prefix.length()))) {
        boolean added = addInferredStatement(predNode, RDF.TYPE, RDFS.CONTAINERMEMBERSHIPPROPERTY);
        if (added) {
          nofInferred++;
View Full Code Here

    return result;
  }

  private static boolean statementsMatch(Statement st1, Statement st2, Map<BNode, BNode> bNodeMapping) {
    URI pred1 = st1.getPredicate();
    URI pred2 = st2.getPredicate();

    if (!pred1.equals(pred2)) {
      // predicates don't match
      return false;
    }
View Full Code Here

    /*@bgen(jjtree) NumericLiteral */
    ASTNumericLiteral jjtn000 = new ASTNumericLiteral(JJTNUMERICLITERAL);
    boolean jjtc000 = true;
    jjtree.openNodeScope(jjtn000);
    Token t;
    URI datatype;
    try {
      switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
        case INTEGER:
          t = jj_consume_token(INTEGER);
          datatype = XMLSchema.INTEGER;
View Full Code Here

    /*@bgen(jjtree) NumericLiteral */
    ASTNumericLiteral jjtn000 = new ASTNumericLiteral(JJTNUMERICLITERAL);
    boolean jjtc000 = true;
    jjtree.openNodeScope(jjtn000);
    Token t;
    URI datatype;
    try {
      switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
        case INTEGER_POSITIVE:
          t = jj_consume_token(INTEGER_POSITIVE);
          datatype = XMLSchema.INTEGER;
View Full Code Here

    /*@bgen(jjtree) NumericLiteral */
    ASTNumericLiteral jjtn000 = new ASTNumericLiteral(JJTNUMERICLITERAL);
    boolean jjtc000 = true;
    jjtree.openNodeScope(jjtn000);
    Token t;
    URI datatype;
    try {
      switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
        case INTEGER_NEGATIVE:
          t = jj_consume_token(INTEGER_NEGATIVE);
          datatype = XMLSchema.INTEGER;
View Full Code Here

TOP

Related Classes of org.openrdf.model.URI

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.