Examples of deleteTripleCollection()


Examples of org.apache.clerezza.rdf.core.access.TcManager.deleteTripleCollection()

    private static MGraph createClerezzaModel() {
        TcManager manager = TcManager.getInstance();
        UriRef graphUri = new UriRef(HTTP_EXAMPLE_COM);
        if (manager.listMGraphs().contains(graphUri)) {
            manager.deleteTripleCollection(graphUri);
        }
        return manager.createMGraph(graphUri);
    }

    private static long benchmarkSemarglJena(File path) throws SAXException, ParseException {
View Full Code Here

Examples of org.apache.clerezza.rdf.core.access.TcManager.deleteTripleCollection()

    private static MGraph createClerezzaModel() {
        TcManager manager = TcManager.getInstance();
        UriRef graphUri = new UriRef(HTTP_EXAMPLE_COM);
        if (manager.listMGraphs().contains(graphUri)) {
            manager.deleteTripleCollection(graphUri);
        }
        return manager.createMGraph(graphUri);
    }

    private static long benchmarkSemarglJena(String path) throws SAXException, ParseException {
View Full Code Here

Examples of org.apache.clerezza.rdf.core.access.TcManager.deleteTripleCollection()

        nTriplesParserTest.init();

        UriRef graphUri = new UriRef("http://example.com/");
        TcManager tcManager = TcManager.getInstance();
        if (tcManager.listMGraphs().contains(graphUri)) {
            tcManager.deleteTripleCollection(graphUri);
        }
        graph = tcManager.createMGraph(graphUri);
        sp = new StreamProcessor(NTriplesParser.connect(ClerezzaSink.connect(graph)));
    }
View Full Code Here

Examples of org.apache.clerezza.rdf.core.access.TcManager.deleteTripleCollection()

    @BeforeClass
    public void init() throws SAXException {
        UriRef graphUri = new UriRef("http://example.com/");
        TcManager MANAGER = TcManager.getInstance();
        if (MANAGER.listMGraphs().contains(graphUri)) {
            MANAGER.deleteTripleCollection(graphUri);
        }
        graph = MANAGER.createMGraph(graphUri);

        streamProcessor = new StreamProcessor(RdfaParser.connect(ClerezzaSink.connect(graph)));
        streamProcessor.setProperty(RdfaParser.ENABLE_VOCAB_EXPANSION, true);
View Full Code Here

Examples of org.apache.clerezza.rdf.core.access.TcManager.deleteTripleCollection()

        rdfXmlParserTest.init();

        UriRef graphUri = new UriRef("http://example.com/");
        TcManager MANAGER = TcManager.getInstance();
        if (MANAGER.listMGraphs().contains(graphUri)) {
            MANAGER.deleteTripleCollection(graphUri);
        }
        graph = MANAGER.createMGraph(graphUri);

        streamProcessor = new StreamProcessor(RdfXmlParser.connect(ClerezzaSink.connect(graph)));
    }
View Full Code Here

Examples of org.apache.clerezza.rdf.core.access.TcProvider.deleteTripleCollection()

        mGraph.add(new TripleImpl(uriRefA, uriRefA, uriRefA));
        Graph graph = mGraph.getGraph();
        simpleTcmProvider.createGraph(uriRefA, graph);
        simpleTcmProvider.createGraph(uriRefC, graph);

        simpleTcmProvider.deleteTripleCollection(uriRefA);
        try {
            simpleTcmProvider.getGraph(uriRefA);
            assertTrue(false);
        } catch (NoSuchEntityException e) {
            assertTrue(true);
View Full Code Here

Examples of org.apache.clerezza.rdf.core.access.TcProvider.deleteTripleCollection()

        UriRef name2 = new UriRef("http://myGraph2");
        Graph secondGraph = provider.createGraph(name2, triples);

        //if we delete graph with name1, the second graph should still be there
        provider.deleteTripleCollection(name1);

        provider = getInstance();
        Graph firstGraph = provider.getGraph(name2);
        assertNotNull(firstGraph);
View Full Code Here

Examples of org.apache.clerezza.rdf.core.access.TcProvider.deleteTripleCollection()

    mGraph.add(new TripleImpl(uriRefA, uriRefA, uriRefA));
    Graph graph = mGraph.getGraph();
    simpleTcmProvider.createGraph(uriRefA, graph);
    simpleTcmProvider.createGraph(uriRefC, graph);

    simpleTcmProvider.deleteTripleCollection(uriRefA);
    try {
      simpleTcmProvider.getGraph(uriRefA);
      assertTrue(false);
    } catch (NoSuchEntityException e) {
      assertTrue(true);
View Full Code Here

Examples of org.apache.clerezza.rdf.core.access.TcProvider.deleteTripleCollection()

    UriRef name2 = new UriRef("http://myGraph2");
    Graph secondGraph = provider.createGraph(name2, triples);

    //if we delete graph with name1, the second graph should still be there
    provider.deleteTripleCollection(name1);

    provider = getInstance();
    Graph firstGraph = provider.getGraph(name2);
    assertNotNull(firstGraph);
View Full Code Here

Examples of org.apache.clerezza.rdf.core.access.TcProvider.deleteTripleCollection()

  @Override
  public void testDeleteEntity() {
    TcProvider fileTcProvider = getInstance();
    MGraph mGraph = fileTcProvider.createMGraph(uriRefA);
    mGraph.add(new TripleImpl(uriRefA, uriRefA, uriRefA));
    fileTcProvider.deleteTripleCollection(uriRefA);
    try {
      fileTcProvider.getMGraph(uriRefA);
      assertTrue(false);
    } catch (NoSuchEntityException e) {
      assertTrue(true);
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.