Can I call a parameterized SPARQL UPDATE (as in Jena's ParameterizedSparqlString
) to set a property to several e.g. literal values?
For instance, I have:
Set<String> object = new HashSet<String>(Arrays.asList("literal1", "literal2"));
and would like to use a SPARQL update such as:
INSERT { [] property ?object } WHERE {}
to build these RDF statements:
_:SUBJECT property "literal1" .
_:SUBJECT property "literal2" .
Does Jena support this kind or parametrization (the signature of ParameterizedSparqlString
suggests no) or will I have to build the SPARQL UPDATE by looping over the set and concatenating strings?