public class JenaUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
WITH_IMPORTS_PREFIX |
| Constructor and Description |
|---|
JenaUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addTransitiveObjects(Set<org.apache.jena.rdf.model.Resource> results,
org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate)
Populates a result set of resources reachable from a subject via zero or more steps with a given predicate.
|
static org.apache.jena.sparql.engine.binding.Binding |
asBinding(org.apache.jena.query.QuerySolution map)
Turns a QuerySolution into a Binding.
|
static org.apache.jena.rdf.model.Property |
asProperty(org.apache.jena.rdf.model.Resource resource)
Casts a Resource into a Property.
|
static org.apache.jena.query.QuerySolutionMap |
asQuerySolutionMap(org.apache.jena.sparql.engine.binding.Binding binding)
Turns a Binding into a QuerySolutionMap.
|
static org.apache.jena.graph.Graph |
asReadOnlyGraph(org.apache.jena.graph.Graph g)
This indicates that no further changes to the graph are needed.
|
static org.apache.jena.rdf.model.Model |
asReadOnlyModel(org.apache.jena.rdf.model.Model m)
This indicates that no further changes to the model are needed.
|
static void |
collectBaseGraphs(org.apache.jena.graph.Graph graph,
Set<org.apache.jena.graph.Graph> baseGraphs) |
static org.apache.jena.graph.Graph |
createDefaultGraph()
Creates a new Graph.
|
static org.apache.jena.rdf.model.Model |
createDefaultModel()
Wraps the result of
createDefaultGraph() into a Model and initializes namespaces. |
static org.apache.jena.graph.Graph |
createMemoryGraph()
Creates a memory Graph with no reification.
|
static org.apache.jena.rdf.model.Model |
createMemoryModel()
Creates a memory Model with no reification.
|
static org.apache.jena.graph.compose.MultiUnion |
createMultiUnion() |
static org.apache.jena.graph.compose.MultiUnion |
createMultiUnion(org.apache.jena.graph.Graph[] graphs) |
static org.apache.jena.graph.compose.MultiUnion |
createMultiUnion(Iterator<org.apache.jena.graph.Graph> graphs) |
static org.apache.jena.ontology.OntModel |
createOntologyModel(org.apache.jena.ontology.OntModelSpec spec,
org.apache.jena.rdf.model.Model base) |
static org.apache.jena.graph.Graph |
deepCloneForReadOnlyThreadSafe(org.apache.jena.graph.Graph g)
Ensure that we there is a read-only, thread safe version of the
graph.
|
static Set<org.apache.jena.rdf.model.Resource> |
getAllInstances(org.apache.jena.rdf.model.Resource cls)
Gets all instances of a given class and its subclasses.
|
static Set<org.apache.jena.rdf.model.Resource> |
getAllSubClasses(org.apache.jena.rdf.model.Resource cls) |
static Set<org.apache.jena.rdf.model.Resource> |
getAllSubClassesStar(org.apache.jena.rdf.model.Resource cls)
Returns a set consisting of a given class and all its subclasses.
|
static Set<org.apache.jena.rdf.model.Resource> |
getAllSubProperties(org.apache.jena.rdf.model.Property superProperty) |
static Set<org.apache.jena.rdf.model.Resource> |
getAllSuperClasses(org.apache.jena.rdf.model.Resource cls) |
static Set<org.apache.jena.rdf.model.Resource> |
getAllSuperClassesStar(org.apache.jena.rdf.model.Resource cls)
Returns a set consisting of a given class and all its superclasses.
|
static Set<org.apache.jena.rdf.model.Resource> |
getAllSuperProperties(org.apache.jena.rdf.model.Property subProperty) |
static Set<org.apache.jena.rdf.model.Resource> |
getAllTransitiveObjects(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate)
Returns a set of resources reachable from a subject via one or more steps with a given predicate.
|
static Set<org.apache.jena.rdf.model.Resource> |
getAllTransitiveSubjects(org.apache.jena.rdf.model.Resource object,
org.apache.jena.rdf.model.Property predicate,
ProgressMonitor monitor)
Returns a set of resources reachable from an object via one or more reversed steps with a given predicate.
|
static Set<org.apache.jena.rdf.model.Resource> |
getAllTypes(org.apache.jena.rdf.model.Resource instance) |
static org.apache.jena.graph.Graph |
getBaseGraph(org.apache.jena.graph.Graph graph) |
static org.apache.jena.graph.Graph |
getBaseGraph(org.apache.jena.rdf.model.Model model)
Gets the "base graph" of a Model, walking into MultiUnions if needed.
|
static org.apache.jena.rdf.model.Model |
getBaseModel(org.apache.jena.rdf.model.Model model) |
static org.apache.jena.rdf.model.Literal |
getBestStringLiteral(org.apache.jena.rdf.model.Resource resource,
List<String> langs,
Iterable<org.apache.jena.rdf.model.Property> properties)
For a given subject resource and a given collection of (label/comment) properties this finds the most
suitable value of either property for a given list of languages (usually from the current user's preferences).
|
static org.apache.jena.rdf.model.Literal |
getBestStringLiteral(org.apache.jena.rdf.model.Resource resource,
List<String> langs,
Iterable<org.apache.jena.rdf.model.Property> properties,
BiFunction<org.apache.jena.rdf.model.Resource,org.apache.jena.rdf.model.Property,Iterator<org.apache.jena.rdf.model.Statement>> getter) |
static boolean |
getBooleanProperty(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate) |
static Double |
getDoubleProperty(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate) |
static double |
getDoubleProperty(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate,
double defaultValue) |
static org.apache.jena.rdf.model.Resource |
getFirstDirectRange(org.apache.jena.rdf.model.Resource property)
Gets the "first" declared rdfs:range of a given property.
|
static org.apache.jena.rdf.model.Resource |
getFirstRange(org.apache.jena.rdf.model.Resource property)
Gets the "first" declared rdfs:range of a given property.
|
static JenaUtilHelper |
getHelper()
Gets the current helper object.
|
static Set<org.apache.jena.rdf.model.Resource> |
getImports(org.apache.jena.rdf.model.Resource graph) |
static Integer |
getIntegerProperty(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate) |
static org.apache.jena.rdf.model.RDFList |
getListProperty(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate) |
static List<org.apache.jena.rdf.model.Literal> |
getLiteralProperties(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate) |
static <T> T |
getNearest(org.apache.jena.rdf.model.Resource cls,
Function<org.apache.jena.rdf.model.Resource,T> function)
Walks up the class hierarchy starting at a given class until one of them
returns a value for a given Function.
|
static String |
getNsPrefixURI(org.apache.jena.rdf.model.Model model,
String prefix)
Overcomes a design mismatch with Jena: if the base model does not declare a default namespace then the
default namespace of an import is returned - this is not desirable for TopBraid-like scenarios.
|
static org.apache.jena.rdf.model.RDFNode |
getProperty(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate) |
static List<org.apache.jena.rdf.model.Resource> |
getResourceProperties(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate) |
static org.apache.jena.rdf.model.Resource |
getResourceProperty(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate)
Deprecated.
Use equivalent call
subject.getPropertyResourceValue(predicate) instead. |
static org.apache.jena.rdf.model.Resource |
getResourcePropertyWithType(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate,
org.apache.jena.rdf.model.Resource type) |
static String |
getStringProperty(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate) |
static List<org.apache.jena.graph.Graph> |
getSubGraphs(org.apache.jena.graph.compose.MultiUnion union) |
static Collection<org.apache.jena.rdf.model.Resource> |
getSuperClasses(org.apache.jena.rdf.model.Resource subClass)
Gets a Set of all superclasses (rdfs:subClassOf) of a given Resource.
|
static org.apache.jena.rdf.model.Resource |
getType(org.apache.jena.rdf.model.Resource instance)
Gets the "first" type of a given Resource.
|
static List<org.apache.jena.rdf.model.Resource> |
getTypes(org.apache.jena.rdf.model.Resource instance)
Gets a Set of all rdf:types of a given Resource.
|
static List<org.apache.jena.rdf.model.Resource> |
getURIResourceProperties(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate) |
static org.apache.jena.rdf.model.Resource |
getURIResourceProperty(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate) |
static boolean |
hasIndirectType(org.apache.jena.rdf.model.Resource instance,
org.apache.jena.rdf.model.Resource expectedType)
Checks whether a given Resource is an instance of a given type, or
a subclass thereof.
|
static boolean |
hasSuperClass(org.apache.jena.rdf.model.Resource subClass,
org.apache.jena.rdf.model.Resource superClass)
Checks whether a given class has a given (transitive) super class.
|
static boolean |
hasSuperProperty(org.apache.jena.rdf.model.Property subProperty,
org.apache.jena.rdf.model.Property superProperty)
Checks whether a given property has a given (transitive) super property.
|
static void |
initNamespaces(org.apache.jena.graph.Graph graph)
Sets the usual default namespaces for rdf, rdfs, owl and xsd.
|
static void |
initNamespaces(org.apache.jena.shared.PrefixMapping prefixMapping)
Sets the usual default namespaces for rdf, rdfs, owl and xsd.
|
static org.apache.jena.graph.Node |
invokeExpression(String expression,
org.apache.jena.query.QuerySolution initialBinding,
org.apache.jena.query.Dataset dataset)
Calls a SPARQL expression and returns the result, using some initial bindings.
|
static org.apache.jena.graph.Node |
invokeFunction0(org.apache.jena.rdf.model.Resource function,
org.apache.jena.query.Dataset dataset)
Calls a given SPARQL function with no arguments.
|
static org.apache.jena.graph.Node |
invokeFunction1(org.apache.jena.rdf.model.Resource function,
org.apache.jena.graph.Node argument,
org.apache.jena.query.Dataset dataset) |
static org.apache.jena.graph.Node |
invokeFunction1(org.apache.jena.rdf.model.Resource function,
org.apache.jena.rdf.model.RDFNode argument,
org.apache.jena.query.Dataset dataset)
Calls a given SPARQL function with one argument.
|
static org.apache.jena.graph.Node |
invokeFunction2(org.apache.jena.rdf.model.Resource function,
org.apache.jena.graph.Node argument1,
org.apache.jena.graph.Node argument2,
org.apache.jena.query.Dataset dataset) |
static org.apache.jena.graph.Node |
invokeFunction2(org.apache.jena.rdf.model.Resource function,
org.apache.jena.rdf.model.RDFNode argument1,
org.apache.jena.rdf.model.RDFNode argument2,
org.apache.jena.query.Dataset dataset)
Calls a given SPARQL function with two arguments.
|
static org.apache.jena.graph.Node |
invokeFunction3(org.apache.jena.rdf.model.Resource function,
org.apache.jena.graph.Node argument1,
org.apache.jena.graph.Node argument2,
org.apache.jena.graph.Node argument3,
org.apache.jena.query.Dataset dataset) |
static org.apache.jena.graph.Node |
invokeFunction3(org.apache.jena.rdf.model.Resource function,
org.apache.jena.rdf.model.RDFNode argument1,
org.apache.jena.rdf.model.RDFNode argument2,
org.apache.jena.rdf.model.RDFNode argument3,
org.apache.jena.query.Dataset dataset) |
static boolean |
isMemoryGraph(org.apache.jena.graph.Graph graph)
Checks whether a given graph (possibly a MultiUnion) only contains
GraphMemBase instances.
|
static org.apache.jena.rdf.model.StmtIterator |
listAllProperties(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate)
Gets an Iterator over all Statements of a given property or its sub-properties
at a given subject instance.
|
static org.apache.jena.query.Query |
queryWithSubstitutions(org.apache.jena.query.Query query,
Map<org.apache.jena.sparql.core.Var,org.apache.jena.graph.Node> substitutions)
Temp patch for a bug in Jena's syntaxtransform, also applying substitutions on
HAVING clauses.
|
static void |
setGraphReadOptimization(boolean onOrOff)
Allows some environments, e.g.
|
static JenaUtilHelper |
setHelper(JenaUtilHelper h)
Sets the helper which allows the behavior of some JenaUtil
methods to be modified by the system using the SPIN library.
|
static void |
sort(List<org.apache.jena.rdf.model.Resource> nodes) |
static org.apache.jena.rdf.model.RDFNode |
toRDFNode(org.apache.jena.graph.Node node) |
static String |
withImports(String uri) |
static String |
withoutImports(String uri) |
public static final String WITH_IMPORTS_PREFIX
public static JenaUtilHelper setHelper(JenaUtilHelper h)
h - the JenaUtilHelperpublic static final JenaUtilHelper getHelper()
public static void addTransitiveObjects(Set<org.apache.jena.rdf.model.Resource> results, org.apache.jena.rdf.model.Resource subject, org.apache.jena.rdf.model.Property predicate)
Collection.add(Object).results - The transitive objects reached from subject via triples with the given predicatesubject - the subject to start traversal atpredicate - the predicate to walkpublic static org.apache.jena.sparql.engine.binding.Binding asBinding(org.apache.jena.query.QuerySolution map)
map - the input QuerySolutionpublic static org.apache.jena.query.QuerySolutionMap asQuerySolutionMap(org.apache.jena.sparql.engine.binding.Binding binding)
binding - the Binding to convertpublic static Set<org.apache.jena.rdf.model.Resource> getAllTransitiveSubjects(org.apache.jena.rdf.model.Resource object, org.apache.jena.rdf.model.Property predicate, ProgressMonitor monitor)
object - the object to start traversal atpredicate - the predicate to walkmonitor - an optional progress monitor to allow cancelationpublic static org.apache.jena.rdf.model.Property asProperty(org.apache.jena.rdf.model.Resource resource)
resource - the Resource to castpublic static void collectBaseGraphs(org.apache.jena.graph.Graph graph,
Set<org.apache.jena.graph.Graph> baseGraphs)
public static org.apache.jena.graph.Graph createDefaultGraph()
createDefaultModel()public static org.apache.jena.rdf.model.Model createDefaultModel()
createDefaultGraph() into a Model and initializes namespaces.createDefaultGraph()public static org.apache.jena.graph.Graph createMemoryGraph()
public static org.apache.jena.rdf.model.Model createMemoryModel()
public static org.apache.jena.graph.compose.MultiUnion createMultiUnion()
public static org.apache.jena.graph.compose.MultiUnion createMultiUnion(org.apache.jena.graph.Graph[] graphs)
public static org.apache.jena.graph.compose.MultiUnion createMultiUnion(Iterator<org.apache.jena.graph.Graph> graphs)
public static Set<org.apache.jena.rdf.model.Resource> getAllInstances(org.apache.jena.rdf.model.Resource cls)
cls - the class to get the instances ofpublic static Set<org.apache.jena.rdf.model.Resource> getAllSubClasses(org.apache.jena.rdf.model.Resource cls)
public static Set<org.apache.jena.rdf.model.Resource> getAllSubClassesStar(org.apache.jena.rdf.model.Resource cls)
cls - the class to return with its subclassespublic static Set<org.apache.jena.rdf.model.Resource> getAllSubProperties(org.apache.jena.rdf.model.Property superProperty)
public static Set<org.apache.jena.rdf.model.Resource> getAllSuperClasses(org.apache.jena.rdf.model.Resource cls)
public static Set<org.apache.jena.rdf.model.Resource> getAllSuperClassesStar(org.apache.jena.rdf.model.Resource cls)
cls - the class to return with its superclassespublic static Set<org.apache.jena.rdf.model.Resource> getAllSuperProperties(org.apache.jena.rdf.model.Property subProperty)
public static Set<org.apache.jena.rdf.model.Resource> getAllTransitiveObjects(org.apache.jena.rdf.model.Resource subject, org.apache.jena.rdf.model.Property predicate)
subject - the subject to start atpredicate - the predicate to traversepublic static Set<org.apache.jena.rdf.model.Resource> getAllTypes(org.apache.jena.rdf.model.Resource instance)
public static org.apache.jena.graph.Graph getBaseGraph(org.apache.jena.rdf.model.Model model)
model - the Model to get the base graph ofpublic static org.apache.jena.graph.Graph getBaseGraph(org.apache.jena.graph.Graph graph)
public static org.apache.jena.rdf.model.Model getBaseModel(org.apache.jena.rdf.model.Model model)
public static org.apache.jena.rdf.model.Literal getBestStringLiteral(org.apache.jena.rdf.model.Resource resource,
List<String> langs,
Iterable<org.apache.jena.rdf.model.Property> properties)
resource - the subject resourcelangs - the allowed languagesproperties - the properties to checkpublic static org.apache.jena.rdf.model.Literal getBestStringLiteral(org.apache.jena.rdf.model.Resource resource,
List<String> langs,
Iterable<org.apache.jena.rdf.model.Property> properties,
BiFunction<org.apache.jena.rdf.model.Resource,org.apache.jena.rdf.model.Property,Iterator<org.apache.jena.rdf.model.Statement>> getter)
public static org.apache.jena.rdf.model.Resource getFirstDirectRange(org.apache.jena.rdf.model.Resource property)
property - the property to get the range ofpublic static org.apache.jena.rdf.model.Resource getFirstRange(org.apache.jena.rdf.model.Resource property)
property - the property to get the range ofpublic static Set<org.apache.jena.rdf.model.Resource> getImports(org.apache.jena.rdf.model.Resource graph)
public static Integer getIntegerProperty(org.apache.jena.rdf.model.Resource subject, org.apache.jena.rdf.model.Property predicate)
public static org.apache.jena.rdf.model.RDFList getListProperty(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate)
public static List<org.apache.jena.rdf.model.Literal> getLiteralProperties(org.apache.jena.rdf.model.Resource subject, org.apache.jena.rdf.model.Property predicate)
public static <T> T getNearest(org.apache.jena.rdf.model.Resource cls,
Function<org.apache.jena.rdf.model.Resource,T> function)
T - the requested result typecls - the class to start atfunction - the Function to execute on each classpublic static String getNsPrefixURI(org.apache.jena.rdf.model.Model model, String prefix)
model - the Model to operate onprefix - the prefix to get the URI ofpublic static org.apache.jena.rdf.model.RDFNode getProperty(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate)
public static org.apache.jena.rdf.model.Resource getResourceProperty(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate)
subject.getPropertyResourceValue(predicate) instead.Resource.getPropertyResourceValue(Property)public static org.apache.jena.rdf.model.Resource getResourcePropertyWithType(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate,
org.apache.jena.rdf.model.Resource type)
public static List<org.apache.jena.rdf.model.Resource> getResourceProperties(org.apache.jena.rdf.model.Resource subject, org.apache.jena.rdf.model.Property predicate)
public static org.apache.jena.rdf.model.Resource getURIResourceProperty(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate)
public static List<org.apache.jena.rdf.model.Resource> getURIResourceProperties(org.apache.jena.rdf.model.Resource subject, org.apache.jena.rdf.model.Property predicate)
public static String getStringProperty(org.apache.jena.rdf.model.Resource subject, org.apache.jena.rdf.model.Property predicate)
public static boolean getBooleanProperty(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate)
public static Double getDoubleProperty(org.apache.jena.rdf.model.Resource subject, org.apache.jena.rdf.model.Property predicate)
public static double getDoubleProperty(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate,
double defaultValue)
public static List<org.apache.jena.graph.Graph> getSubGraphs(org.apache.jena.graph.compose.MultiUnion union)
public static Collection<org.apache.jena.rdf.model.Resource> getSuperClasses(org.apache.jena.rdf.model.Resource subClass)
subClass - the subClass Resourcepublic static org.apache.jena.rdf.model.Resource getType(org.apache.jena.rdf.model.Resource instance)
instance - the instance to get the type ofpublic static List<org.apache.jena.rdf.model.Resource> getTypes(org.apache.jena.rdf.model.Resource instance)
instance - the instance Resourcepublic static boolean hasIndirectType(org.apache.jena.rdf.model.Resource instance,
org.apache.jena.rdf.model.Resource expectedType)
instance - the Resource to testexpectedType - the type that instance is expected to havepublic static boolean hasSuperClass(org.apache.jena.rdf.model.Resource subClass,
org.apache.jena.rdf.model.Resource superClass)
subClass - the sub-classsuperClass - the super-classpublic static boolean hasSuperProperty(org.apache.jena.rdf.model.Property subProperty,
org.apache.jena.rdf.model.Property superProperty)
subProperty - the sub-propertysuperProperty - the super-propertypublic static void initNamespaces(org.apache.jena.graph.Graph graph)
graph - the Graph to modifypublic static void initNamespaces(org.apache.jena.shared.PrefixMapping prefixMapping)
prefixMapping - the Model to modifypublic static boolean isMemoryGraph(org.apache.jena.graph.Graph graph)
graph - the Graph to testpublic static org.apache.jena.rdf.model.StmtIterator listAllProperties(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate)
subject - the subject (may be null)predicate - the predicatepublic static org.apache.jena.rdf.model.Model asReadOnlyModel(org.apache.jena.rdf.model.Model m)
m - the Model to get as a read-only variantpublic static org.apache.jena.graph.Graph asReadOnlyGraph(org.apache.jena.graph.Graph g)
g - the Graph to get as a read-only variantpublic static org.apache.jena.ontology.OntModel createOntologyModel(org.apache.jena.ontology.OntModelSpec spec,
org.apache.jena.rdf.model.Model base)
public static void setGraphReadOptimization(boolean onOrOff)
true
with a matching call with false in a finally
block.
Note: Unstable - don't use outside of TopBraid.onOrOff - true to switch onpublic static org.apache.jena.graph.Graph deepCloneForReadOnlyThreadSafe(org.apache.jena.graph.Graph g)
g - The given graphpublic static org.apache.jena.graph.Node invokeExpression(String expression, org.apache.jena.query.QuerySolution initialBinding, org.apache.jena.query.Dataset dataset)
expression - the expression to execute (must contain absolute URIs)initialBinding - the initial bindings for the unbound variablesdataset - the query Dataset or null for defaultpublic static org.apache.jena.graph.Node invokeFunction0(org.apache.jena.rdf.model.Resource function,
org.apache.jena.query.Dataset dataset)
function - the URI resource of the function to calldataset - the Dataset to operate on or null for defaultpublic static org.apache.jena.graph.Node invokeFunction1(org.apache.jena.rdf.model.Resource function,
org.apache.jena.rdf.model.RDFNode argument,
org.apache.jena.query.Dataset dataset)
function - the URI resource of the function to callargument - the first argumentdataset - the Dataset to operate on or null for defaultpublic static org.apache.jena.graph.Node invokeFunction1(org.apache.jena.rdf.model.Resource function,
org.apache.jena.graph.Node argument,
org.apache.jena.query.Dataset dataset)
public static org.apache.jena.graph.Node invokeFunction2(org.apache.jena.rdf.model.Resource function,
org.apache.jena.rdf.model.RDFNode argument1,
org.apache.jena.rdf.model.RDFNode argument2,
org.apache.jena.query.Dataset dataset)
function - the URI resource of the function to callargument1 - the first argumentargument2 - the second argumentdataset - the Dataset to operate on or null for defaultpublic static org.apache.jena.graph.Node invokeFunction2(org.apache.jena.rdf.model.Resource function,
org.apache.jena.graph.Node argument1,
org.apache.jena.graph.Node argument2,
org.apache.jena.query.Dataset dataset)
public static org.apache.jena.graph.Node invokeFunction3(org.apache.jena.rdf.model.Resource function,
org.apache.jena.rdf.model.RDFNode argument1,
org.apache.jena.rdf.model.RDFNode argument2,
org.apache.jena.rdf.model.RDFNode argument3,
org.apache.jena.query.Dataset dataset)
public static org.apache.jena.graph.Node invokeFunction3(org.apache.jena.rdf.model.Resource function,
org.apache.jena.graph.Node argument1,
org.apache.jena.graph.Node argument2,
org.apache.jena.graph.Node argument3,
org.apache.jena.query.Dataset dataset)
public static org.apache.jena.query.Query queryWithSubstitutions(org.apache.jena.query.Query query,
Map<org.apache.jena.sparql.core.Var,org.apache.jena.graph.Node> substitutions)
query - the Query to transformsubstitutions - the variable bindingspublic static void sort(List<org.apache.jena.rdf.model.Resource> nodes)
public static org.apache.jena.rdf.model.RDFNode toRDFNode(org.apache.jena.graph.Node node)
Copyright © 2019 TopQuadrant, Inc.. All rights reserved.