Examples of toSPARQL()


Examples of org.ontoware.rdf2go.model.node.URI.toSPARQL()

    URI tagSemweb = new URIImpl("tag://semweb");
    URI fileA = new URIImpl("file://a");
    modelRDFS.addStatement(fileA, hasTag, tagSemweb);
    Assert.assertTrue(modelRDFS.sparqlAsk("ASK WHERE { " + fileA.toSPARQL() + " "
            + hasTag.toSPARQL() + " ?tag . }"));
    Assert.assertTrue(modelRDFS.sparqlAsk("ASK WHERE { " + fileA.toSPARQL() + " " + " ?prop "
            + tagSemweb.toSPARQL() + " . }"));
    Assert.assertFalse(modelRDFS.sparqlAsk("ASK WHERE { " + fileA.toSPARQL() + " "
            + "<prop://bogus>" + " ?tag . }"));
    Assert.assertTrue(modelRDFS.sparqlAsk("ASK WHERE { ?s ?p ?o . }"));
    modelRDFS.close();
View Full Code Here

Examples of org.ontoware.rdf2go.model.node.URI.toSPARQL()

    modelRDFS.addStatement(fileA, hasTag, tagSemweb);
    Assert.assertTrue(modelRDFS.sparqlAsk("ASK WHERE { " + fileA.toSPARQL() + " "
            + hasTag.toSPARQL() + " ?tag . }"));
    Assert.assertTrue(modelRDFS.sparqlAsk("ASK WHERE { " + fileA.toSPARQL() + " " + " ?prop "
            + tagSemweb.toSPARQL() + " . }"));
    Assert.assertFalse(modelRDFS.sparqlAsk("ASK WHERE { " + fileA.toSPARQL() + " "
            + "<prop://bogus>" + " ?tag . }"));
    Assert.assertTrue(modelRDFS.sparqlAsk("ASK WHERE { ?s ?p ?o . }"));
    modelRDFS.close();
  }
 
View Full Code Here

Examples of org.ontoware.rdf2go.model.node.impl.URIImpl.toSPARQL()

    m.addStatement(a, b, c);
    m.addStatement(a, RDF.type, c);
    log.debug("Before");
    m.dump();

    String constructRemove = "?x a " + c.toSPARQL();
    String constructAdd = "?x a " + b.toSPARQL();
    String where = constructRemove;

    SearchRemoveAddRule.searchAndReplace(m, nsMap, where, constructRemove,
        constructAdd);
View Full Code Here

Examples of org.ontoware.rdf2go.model.node.impl.URIImpl.toSPARQL()

    modelRDFS.open();
    URI hasTag = new URIImpl("prop://hasTag");
    URI tagSemweb = new URIImpl("tag://semweb");
    URI fileA = new URIImpl("file://a");
    modelRDFS.addStatement(fileA, hasTag, tagSemweb);
    Assert.assertTrue(modelRDFS.sparqlAsk("ASK WHERE { " + fileA.toSPARQL() + " "
            + hasTag.toSPARQL() + " ?tag . }"));
    Assert.assertTrue(modelRDFS.sparqlAsk("ASK WHERE { " + fileA.toSPARQL() + " " + " ?prop "
            + tagSemweb.toSPARQL() + " . }"));
    Assert.assertFalse(modelRDFS.sparqlAsk("ASK WHERE { " + fileA.toSPARQL() + " "
            + "<prop://bogus>" + " ?tag . }"));
View Full Code Here

Examples of org.ontoware.rdf2go.model.node.impl.URIImpl.toSPARQL()

    URI tagSemweb = new URIImpl("tag://semweb");
    URI fileA = new URIImpl("file://a");
    modelRDFS.addStatement(fileA, hasTag, tagSemweb);
    Assert.assertTrue(modelRDFS.sparqlAsk("ASK WHERE { " + fileA.toSPARQL() + " "
            + hasTag.toSPARQL() + " ?tag . }"));
    Assert.assertTrue(modelRDFS.sparqlAsk("ASK WHERE { " + fileA.toSPARQL() + " " + " ?prop "
            + tagSemweb.toSPARQL() + " . }"));
    Assert.assertFalse(modelRDFS.sparqlAsk("ASK WHERE { " + fileA.toSPARQL() + " "
            + "<prop://bogus>" + " ?tag . }"));
    Assert.assertTrue(modelRDFS.sparqlAsk("ASK WHERE { ?s ?p ?o . }"));
    modelRDFS.close();
View Full Code Here

Examples of org.ontoware.rdf2go.model.node.impl.URIImpl.toSPARQL()

    modelRDFS.addStatement(fileA, hasTag, tagSemweb);
    Assert.assertTrue(modelRDFS.sparqlAsk("ASK WHERE { " + fileA.toSPARQL() + " "
            + hasTag.toSPARQL() + " ?tag . }"));
    Assert.assertTrue(modelRDFS.sparqlAsk("ASK WHERE { " + fileA.toSPARQL() + " " + " ?prop "
            + tagSemweb.toSPARQL() + " . }"));
    Assert.assertFalse(modelRDFS.sparqlAsk("ASK WHERE { " + fileA.toSPARQL() + " "
            + "<prop://bogus>" + " ?tag . }"));
    Assert.assertTrue(modelRDFS.sparqlAsk("ASK WHERE { ?s ?p ?o . }"));
    modelRDFS.close();
  }
 
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.