/** * Construct an instance with a simple Sesame ValueFactoryImpl. */ public DefaultBlueprintsValueFactory(final String graphNamespace, final String vertexNamespace, final String edgeNamespace, final URI type, final URI vertex, final URI edge, final URI label) { this(new ValueFactoryImpl(), graphNamespace, vertexNamespace, edgeNamespace, type, vertex, edge, label); }
/** * Creates a new XmlAdminMsgReader that will use the supplied * <tt>XMLReader</tt> for parsing the XML admin message documents and an * instance of <tt>ValueFactoryImpl</tt> to create any model objects. **/ public XmlAdminMsgReader(XMLReader xmlReader) { this(xmlReader, new ValueFactoryImpl()); }
/** * Creates a new reader for the binary result format that will use an * instance of <tt>org.openrdf.model.impl.ValueFactoryImpl</tt> to create * Value objects. **/ public BinaryTableResultReader() { this(new ValueFactoryImpl()); }
/** * Construct an instance with a simple Sesame ValueFactoryImpl. */ private BigdataRDFFactory() { super(new ValueFactoryImpl(), GRAPH_NAMESPACE, VERTEX_NAMESPACE, EDGE_NAMESPACE, RDF.TYPE, VERTEX, EDGE, RDFS.LABEL); }
/** * Creates a new RDFParserBase that will use a {@link org.openrdf.model.impl.ValueFactoryImpl} to * create RDF model objects. */ public AtomParser() { this(new ValueFactoryImpl()); }
public static ValueFactory getIRIFactory() { if (irifactory == null) { irifactory = new ValueFactoryImpl(); } return irifactory; }
@Override public ValueFactory getValueFactory() { //Gets a ValueFactory for this RepositoryConnection. return new ValueFactoryImpl(); }
/** * Creates a new RDFParserBase that will use a {@link org.openrdf.model.impl.ValueFactoryImpl} to * create RDF model objects. */ protected FeedParserBase() { this(new ValueFactoryImpl()); }
/** * Creates a new RDFParserBase that will use a {@link org.openrdf.model.impl.ValueFactoryImpl} to * create RDF model objects. */ public RSSParser() { this(new ValueFactoryImpl()); }
/** * Creates a new RDFParserBase that will use a {@link org.openrdf.model.impl.ValueFactoryImpl} to * create RDF model objects. */ public RSSParser() { this(new ValueFactoryImpl()); }
/** * Creates a new RDFParserBase that will use a {@link org.openrdf.model.impl.ValueFactoryImpl} to * create RDF model objects. */ public ICalParser() { this(new ValueFactoryImpl()); }
public ParserSpeedTest() { // It is possible to run multiple parsers. this.parserService = Executors.newCachedThreadPool(); // TODO compare w/ openrdf default value factory.... // this.vf = BigdataValueFactoryImpl.getInstance("test"); this.vf = new ValueFactoryImpl(); }
public ParserSpeedTest() { // It is possible to run multiple parsers. this.parserService = Executors.newCachedThreadPool(); // TODO compare w/ openrdf default value factory.... // this.vf = BigdataValueFactoryImpl.getInstance("test"); this.vf = new ValueFactoryImpl(); }
RIQueryResult(InputStream in) { try { reader = new BufferedReader(new InputStreamReader(in, HTTP.UTF_8)); } catch (UnsupportedEncodingException wontHappen) { throw new RuntimeException(wontHappen); } factory = new ValueFactoryImpl(); exhausted = false; }
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); setValueFactory(new ValueFactoryImpl()); }
public ParserSpeedTest() { // It is possible to run multiple parsers. this.parserService = Executors.newCachedThreadPool(); // TODO compare w/ openrdf default value factory.... // this.vf = BigdataValueFactoryImpl.getInstance("test"); this.vf = new ValueFactoryImpl(); }
private LiteralManager getLiteralManager(ClassLoader cl, ValueFactory uf, ObjectRepositoryConfig module) { LiteralManager literalManager = createLiteralManager(uf, new ValueFactoryImpl()); literalManager.setClassLoader(cl); for (Map.Entry<Class<?>, List<URI>> e : module.getDatatypes().entrySet()) { for (URI value : e.getValue()) { literalManager.addDatatype(e.getKey(), value); } } return literalManager; }
private void init() throws RDFHandlerException { if (vf == null) vf = new ValueFactoryImpl(); rdf.startRDF(); rdf.handleNamespace("rdf", RDF.NAMESPACE); rdf.handleNamespace("serqo", SeRQO.NAMESPACE_URL); }
protected Graph genNTRIPLES2(final int ntriples) throws RDFHandlerException { final Graph g = new LinkedHashModel(); final ValueFactory f = new ValueFactoryImpl(); final URI s = f.createURI("http://www.bigdata.org/b"); final URI rdfType = f .createURI("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"); for (int i = 0; i < ntriples; i++) { final URI o = f.createURI("http://www.bigdata.org/c#" + i); g.add(s, rdfType, o); } return g; }
@Override public void add(Resource subject, org.openrdf.model.URI predicate, Value object, Resource... contexts) throws RepositoryException { //Adds a statement with the specified subject, predicate and object to this repository, //optionally to one or more named contexts. OpenRDFUtil.verifyContextNotNull(contexts); ValueFactory vf = new ValueFactoryImpl(); Statement st = vf.createStatement(subject, vf.createURI(predicate.toString()), object); add(st, contexts); }