public class SparqlSupport extends Object
Constructor and Description |
---|
SparqlSupport() |
Modifier and Type | Method and Description |
---|---|
static void |
appendPrefixes(StringBuilder q,
com.hp.hpl.jena.shared.PrefixMapping pm)
Add SPARQL prefix declarations for all the prefixes in
pm to the StringBuilder q . |
static StringBuilder |
itemsAsFilter(List<com.hp.hpl.jena.rdf.model.Resource> roots)
Return a String[Builder] containing the SPARQL fragment
FILTER(?item = R1 || ?item = R2 ...) where the Ri are the
resources in
roots . |
public static void appendPrefixes(StringBuilder q, com.hp.hpl.jena.shared.PrefixMapping pm)
pm
to the StringBuilder q
.public static StringBuilder itemsAsFilter(List<com.hp.hpl.jena.rdf.model.Resource> roots)
roots
.Copyright © 2014. All Rights Reserved.