Package com.clarkparsia.empire.ds

Examples of com.clarkparsia.empire.ds.MutableDataSource


      One one = new One();
      one.setRdfId(aId);

      aMgr.persist(one);

      MutableDataSource ts = (MutableDataSource) aMgr.getDelegate();
            if (ts instanceof SupportsTransactions) {
                ((SupportsTransactions) ts).begin();
            }

      ts.add(Graphs.newGraph(ValueFactoryImpl.getInstance().createStatement(ValueFactoryImpl.getInstance().createURI("urn:two"),
                                          RDF.TYPE,
                                          ValueFactoryImpl.getInstance().createBNode()),
                   ValueFactoryImpl.getInstance().createStatement(ValueFactoryImpl.getInstance().createURI("urn:one"),
                                          ValueFactoryImpl.getInstance().createURI("http://empire.clarkparsia.com/hasMoreTwos"),
                                          ValueFactoryImpl.getInstance().createURI("urn:two"))));
View Full Code Here

TOP

Related Classes of com.clarkparsia.empire.ds.MutableDataSource

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.