Examples of addTriple()


Examples of com.hp.hpl.squirrelrdf.ldap.LdapSparqlMap.addTriple()

  public void test7() throws NamingException
  {
    LdapSparqlMap map = new LdapSparqlMap(config);
   
    map.addTriple(Triple.create("?person http://xmlns.com/foaf/0.1/mbox mailto:martin.merry@hp.com"));
    map.addTriple(Triple.create("?underling http://jena.hpl.hp.com/schemas/hpcorp#manager ?person"));
    map.addTriple(Triple.create("?underling http://xmlns.com/foaf/0.1/name ?name"));
   
    QueryIterator results = new QueryIterSingleton(new BindingRoot());
   
    results = map.execute(results, null);
View Full Code Here

Examples of com.hp.hpl.squirrelrdf.ldap.LdapSparqlMap.addTriple()

  {
    LdapSparqlMap map = new LdapSparqlMap(config);
   
    map.addTriple(Triple.create("?person http://xmlns.com/foaf/0.1/mbox mailto:martin.merry@hp.com"));
    map.addTriple(Triple.create("?underling http://jena.hpl.hp.com/schemas/hpcorp#manager ?person"));
    map.addTriple(Triple.create("?underling http://xmlns.com/foaf/0.1/name ?name"));
   
    QueryIterator results = new QueryIterSingleton(new BindingRoot());
   
    results = map.execute(results, null);
   
View Full Code Here

Examples of lupos.datastructures.bindings.Bindings.addTriple()

                } else {
                  cB.add((Variable) tp.getPos(i), triple.getPos(i));
                }
              }
            }
            cB.addTriple(triple);
            return cB;
          }

          private void retrieveNewTriples() {
            this.currentBindings = this.oldBindings.next();
View Full Code Here

Examples of lupos.datastructures.bindings.Bindings.addTriple()

                } else {
                  cB.add((Variable) tp.getPos(i), triple.getPos(i));
                }
              }
            }
            cB.addTriple(triple);
            return cB;
          }

          private void retrieveNewTriples() {
            this.currentBindings = this.oldBindings.next();
View Full Code Here

Examples of lupos.datastructures.bindings.Bindings.addTriple()

          e.printStackTrace();
          return null;
        }
      }
    }
    bindings.addTriple(triple);
    if (this.projectionPresortingNumbers != null) {
      if (this.order1 == null) {
        final int i = 0;
        for (final BasicOperator bo : this.projectionPresortingNumbers.keySet()) {
          final LinkedList<Variable> li = this.projectionPresortingNumbers.get(bo);
View Full Code Here

Examples of lupos.datastructures.bindings.Bindings.addTriple()

        // This JSONObject contains the query-triples!
        // This is no standard and a proprietary feature of LUPOSDATE!
        final JSONArray triples = oneResult.getJSONArray(var);
        for(int i=0; i<triples.length(); i++){
          final JSONObject jsonTriple = triples.getJSONObject(i);
          luposResult.addTriple(new Triple(getLiteral(jsonTriple.getJSONObject("subject")), getLiteral(jsonTriple.getJSONObject("predicate")), getLiteral(jsonTriple.getJSONObject("object"))));
        }
      }
    }
    return luposResult;
  }
View Full Code Here

Examples of org.apache.marmotta.kiwi.versioning.model.Version.addTriple()

            connection.storeTriple(triple2);
            connection.commit();

            Version version1 = new Version();
            version1.setCommitTime(new Date());
            version1.addTriple(triple1);
            connection.storeVersion(version1);
            connection.commit();

            // check if listVersions now gives exactly one version
            List<Version> list1 = Iterations.asList(connection.listVersions());
View Full Code Here

Examples of org.apache.marmotta.kiwi.versioning.model.Version.addTriple()

            Assert.assertEquals("version id is not 1", 1L, (long)listr1.get(0).getId());


            Version version2 = new Version();
            version2.setCommitTime(new Date());
            version2.addTriple(triple2);
            version2.removeTriple(triple1);
            connection.storeVersion(version2);
            connection.commit();

            // check if listVersions now gives exactly two versions
View Full Code Here

Examples of org.apache.marmotta.kiwi.versioning.model.Version.addTriple()

            mysqlSleep();


            Version version1 = new Version();
            version1.setCommitTime(new Date());
            version1.addTriple(triple1);
            connection.storeVersion(version1);
            connection.commit();

            // wait for one second to be sure to capture MySQL cutting milliseconds
            mysqlSleep();
View Full Code Here

Examples of org.apache.marmotta.kiwi.versioning.model.Version.addTriple()

            mysqlSleep();


            Version version2 = new Version();
            version2.setCommitTime(new Date());
            version2.addTriple(triple2);
            version2.removeTriple(triple1);
            connection.storeVersion(version2);
            connection.commit();

            // wait for one second to be sure to capture MySQL cutting milliseconds
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.