@Override public ValueFactory getValueFactory() { // Gets a ValueFactory for this Repository. return ValueFactoryImpl.getInstance(); }
/** * Create a RdfValueFactory that does use the same {@link Model} for all * created {@link Representation}s. * @param model the model to use * @param sesameFactory the Sesame ValueFactory or <code>null</code> to use * the default */ public RdfValueFactory(Model model, org.openrdf.model.ValueFactory sesameFactory){ this.model = model; this.sesameFactory = sesameFactory == null ? ValueFactoryImpl.getInstance() : sesameFactory;; } /**
@Deprecated @Override public final ValueFactory getValueFactory() { return ValueFactoryImpl.getInstance(); }
public ObjectSerializationMarshall(ValueFactory vf, Class<T> type) { super(); this.vf = vf; this.type = type; this.datatype = ValueFactoryImpl.getInstance().createURI("java:", type.getName()); }
private Map<String, Value> getBindings(Map<String, Object> variables) { Map<String, Value> bindings = new HashMap<>(); for (Map.Entry<String, Object> stringObjectEntry : variables.entrySet()) { if (!stringObjectEntry.getValue().getClass().equals(Object.class)) bindings.put(stringObjectEntry.getKey(), ValueFactoryImpl.getInstance().createLiteral(stringObjectEntry.getValue().toString())); } return bindings; } }
public SqlTimestampMarshall(ValueFactory vf) throws DatatypeConfigurationException { this.vf = vf; factory = DatatypeFactory.newInstance(); datatype = ValueFactoryImpl.getInstance().createURI(DATATYPE); }
public ClassMarshall(ValueFactory vf, ClassLoader cl) throws DatatypeConfigurationException { this.vf = vf; this.cl = cl; datatype = ValueFactoryImpl.getInstance().createURI(DATATYPE); }
public GregorianCalendarMarshall(ValueFactory vf) throws DatatypeConfigurationException { this.vf = vf; factory = DatatypeFactory.newInstance(); datatype = ValueFactoryImpl.getInstance().createURI(DATATYPE); }
public SqlTimeMarshall(ValueFactory vf) throws DatatypeConfigurationException { this.vf = vf; factory = DatatypeFactory.newInstance(); datatype = ValueFactoryImpl.getInstance().createURI(DATATYPE); }
public void setRepository(final Repository repository) { this.repository = repository; if(this.repository != null) { this.vf = this.repository.getValueFactory(); } else { this.vf = ValueFactoryImpl.getInstance(); } }
private Map<String, Value> getBindings(Map<String, Object> variables) { Map<String, Value> bindings = new HashMap<String, Value>(); for (Map.Entry<String, Object> stringObjectEntry : variables.entrySet()) { if (!stringObjectEntry.getValue().getClass().equals(Object.class)) bindings.put(stringObjectEntry.getKey(), ValueFactoryImpl.getInstance().createLiteral(stringObjectEntry.getValue().toString())); } return bindings; } }
public DateMarshall(ValueFactory vf) throws DatatypeConfigurationException { this.vf = vf; factory = DatatypeFactory.newInstance(); datatype = ValueFactoryImpl.getInstance().createURI(DATATYPE); }
public LdpServiceImpl() { ldpContext = ValueFactoryImpl.getInstance().createURI(LDP.NAMESPACE); ldpInteractionModelProperty = ValueFactoryImpl.getInstance().createURI(LDP.NAMESPACE, "interactionModel"); ldpUsed = ValueFactoryImpl.getInstance().createURI(LDP.NAMESPACE, "used"); }
public DateMarshall(ValueFactory vf) throws DatatypeConfigurationException { this.vf = vf; factory = DatatypeFactory.newInstance(); datatype = ValueFactoryImpl.getInstance().createURI(DATATYPE); }
RestletUtilRoles(final String roleName, final String description, final String uriString, final boolean assignable) { this.role = new Role(roleName, description); this.uri = ValueFactoryImpl.getInstance().createURI(uriString); this.assignable = assignable; }
protected void setUp() throws Exception { super.setUp(); fixture = new BigdataValueSerializer<Value>( ValueFactoryImpl.getInstance()); }
@Override public void handleSolution(BindingSet bindingSet) throws TupleQueryResultHandlerException { Value predicate = bindingSet.getValue("p"); Value object = bindingSet.getValue("o"); if(predicate instanceof URI) { triples.add(ValueFactoryImpl.getInstance().createStatement(subject,(URI)predicate,object)); } else { log.error("ignoring binding as predicate {} is not a URI",predicate); } }
private static Value makeValue(final String valueString, final URI typeURI) { // Convert the String Value into a Value. final ValueFactory valueFactory = ValueFactoryImpl.getInstance(); if (typeURI.equals(XMLSchema.ANYURI)) { return valueFactory.createURI(valueString); } else { return valueFactory.createLiteral(valueString, typeURI); } }
@Override public Model exportDataset(String dataset) { RDFFormat format = RDFFormat.TURTLE; try { final java.net.URI target = credentials.buildUrl(getDatasetUriBuilder(dataset)); log.debug("Exporting {} data from dataset {}", format.getName(), dataset); final String entity = client.get(target, format.getDefaultMIMEType()); return Rio.parse(new StringReader(entity), target.toString(), format, new ParserConfig(), ValueFactoryImpl.getInstance(), new ParseErrorLogger()); } catch (IllegalArgumentException | URISyntaxException | RDFParseException | IOException e) { throw new RuntimeException(e); } }
protected void setUp() throws Exception { super.setUp(); fixture = new BigdataValueSerializer<Value>( ValueFactoryImpl.getInstance()); }