Examples of URIImpl


Examples of org.openrdf.model.impl.URIImpl

    return memURI;
  }

  public synchronized URI createURI(String uri) {
    URI tempURI = new URIImpl(uri);
    MemURI memURI = getMemURI(tempURI);

    if (memURI == null) {
      memURI = createMemURI(tempURI);
    }
View Full Code Here

Examples of org.openrdf.model.impl.URIImpl

      }

      tempURI = new MemURI(this, namespace, localName);
    }
    else {
      tempURI = new URIImpl(namespace + localName);
    }

    MemURI memURI = uriRegistry.get(tempURI);

    if (memURI == null) {
View Full Code Here

Examples of org.openrdf.model.impl.URIImpl

   */
  public void testNamedContext_PUT()
    throws Exception
  {
    String location = Protocol.getStatementsLocation(TestServer.REPOSITORY_URL);
    String encContext = Protocol.encodeValue(new URIImpl("urn:x-local:graph1"));
    location = HttpClientUtil.appendParameter(location, Protocol.CONTEXT_PARAM_NAME, encContext);
    putFile(location, "/testcases/named-graph-1.ttl");
  }
View Full Code Here

Examples of org.openrdf.model.impl.URIImpl

   */
  public void testNamedContext_DELETE()
    throws Exception
  {
    String location = Protocol.getStatementsLocation(TestServer.REPOSITORY_URL);
    String encContext = Protocol.encodeValue(new URIImpl("urn:x-local:graph1"));
    location = HttpClientUtil.appendParameter(location, Protocol.CONTEXT_PARAM_NAME, encContext);
    delete(location);
  }
View Full Code Here

Examples of org.openrdf.model.impl.URIImpl

    private final URI graph;

    public Collector(Model statements, String graph) {
      super(statements);
      this.graph = new URIImpl(graph);
    }
View Full Code Here

Examples of org.openrdf.model.impl.URIImpl

      for (ASTDatasetClause dc : datasetClauses) {
        ASTIRI astIri = dc.jjtGetChild(ASTIRI.class);

        try {
          URI uri = new URIImpl(astIri.getValue());
          if (dc.isNamed()) {
            dataset.addNamedGraph(uri);
          }
          else {
            dataset.addDefaultGraph(uri);
View Full Code Here

Examples of org.openrdf.model.impl.URIImpl

  protected void insertTestStatement(SailConnection connection, int i)
    throws StoreException
  {
    // System.out.print("+");
    connection.addStatement(new URIImpl("http://test#s" + i), new URIImpl("http://test#p" + i),
        new URIImpl("http://test#o" + i), new URIImpl("http://test#context_" + i));
  }
View Full Code Here

Examples of org.openrdf.model.impl.URIImpl

  protected void removeTestStatement(SailConnection connection, int i)
    throws StoreException
  {
    // System.out.print("-");
    connection.removeStatements(new URIImpl("http://test#s" + i), new URIImpl("http://test#p" + i),
        new URIImpl("http://test#o" + i), new URIImpl("http://test#context_" + i));
  }
View Full Code Here

Examples of org.openrdf.model.impl.URIImpl

        // Add unnamed graph
        con.add(url(dataFile), base(dataFile), RDFFormat.forFileName(dataFile));

        // add named graphs
        for (String graphName : graphNames) {
          con.add(url(graphName), base(graphName), RDFFormat.forFileName(graphName), new URIImpl(
              graphName));
        }

        // Evaluate the query on the query data
        GraphResult result = con.prepareGraphQuery(getQueryLanguage(), query).evaluate();
View Full Code Here

Examples of org.openrdf.model.impl.URIImpl

  private TupleResult createQueryResult() {
    List<String> bindingNames = Arrays.asList("a", "b", "c");

    MapBindingSet solution1 = new MapBindingSet(bindingNames.size());
    solution1.addBinding("a", new URIImpl("foo:bar"));
    solution1.addBinding("b", new BNodeImpl("bnode"));
    solution1.addBinding("c", new LiteralImpl("baz"));

    MapBindingSet solution2 = new MapBindingSet(bindingNames.size());
    solution2.addBinding("a", new LiteralImpl("1", XMLSchema.INTEGER));
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.