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 |
addDomainlessSubProperties(org.apache.jena.rdf.model.Resource property,
Set<org.apache.jena.rdf.model.Property> results,
Set<org.apache.jena.rdf.model.Resource> reached)
Adds all sub-properties of a given property as long as they don't have their own
rdfs:domain.
|
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 Set<org.apache.jena.rdf.model.Property> |
asProperties(Collection<org.apache.jena.rdf.model.Resource> resources)
Creates a Set of Properties from a Collection of Resources.
|
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 boolean |
getBooleanProperty(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate) |
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 org.apache.jena.graph.Node |
getLocalRange(org.apache.jena.graph.Node property,
org.apache.jena.graph.Node type,
org.apache.jena.graph.Graph graph,
boolean useDefault)
Gets the local range of a given property at a given class, considering things like
rdfs:range, owl:allValuesFrom restrictions, spl:Argument and others.
|
static String |
getNsPrefixURI(org.apache.jena.rdf.model.Model model,
String prefix)
Overcomes a bug in Jena: if the base model does not declare a default namespace then the
default namespace of an import is returned!
|
static org.apache.jena.rdf.model.RDFNode |
getProperty(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate) |
static org.apache.jena.rdf.model.Resource |
getPropertyResourceValue(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property p)
Replacement for
Resource.getPropertyResourceValue(Property)
which leaves an unclosed iterator. |
static List<org.apache.jena.rdf.model.Resource> |
getReferences(org.apache.jena.rdf.model.Property predicate,
org.apache.jena.rdf.model.Resource object) |
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) |
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 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 boolean |
isMulti(org.apache.jena.graph.Node property,
org.apache.jena.graph.Node type,
org.apache.jena.graph.Graph graph) |
static boolean |
isMulti(org.apache.jena.rdf.model.Property property,
org.apache.jena.rdf.model.Resource type)
Checks if a given property is multi-valued according to owl:FunctionalProperty,
OWL cardinality restrictions, spl:Argument or spl:ObjectCountPropertyConstraint.
|
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 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 JenaUtilHelper getHelper()
public static void addDomainlessSubProperties(org.apache.jena.rdf.model.Resource property,
Set<org.apache.jena.rdf.model.Property> results,
Set<org.apache.jena.rdf.model.Resource> reached)
property - the property ot add the sub-properties ofresults - the Set to add the results toreached - a Set used to track which ones were already reachedpublic 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 - predicate - public 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)
public static org.apache.jena.rdf.model.Property asProperty(org.apache.jena.rdf.model.Resource resource)
resource - the Resource to castpublic static Set<org.apache.jena.rdf.model.Property> asProperties(Collection<org.apache.jena.rdf.model.Resource> resources)
resources - 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)
public 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.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 org.apache.jena.graph.Node getLocalRange(org.apache.jena.graph.Node property,
org.apache.jena.graph.Node type,
org.apache.jena.graph.Graph graph,
boolean useDefault)
property - the Property to get the range oftype - the class to get the range atgraph - the Graph to operate onuseDefault - true to fall back to a suitable defaultpublic 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 List<org.apache.jena.rdf.model.Resource> getReferences(org.apache.jena.rdf.model.Property predicate, org.apache.jena.rdf.model.Resource object)
public static org.apache.jena.rdf.model.Resource getResourceProperty(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate)
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 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 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 boolean isMulti(org.apache.jena.rdf.model.Property property,
org.apache.jena.rdf.model.Resource type)
property - the Property checktype - the context class to start traversal at (may be null)public static boolean isMulti(org.apache.jena.graph.Node property,
org.apache.jena.graph.Node type,
org.apache.jena.graph.Graph graph)
public 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 - public static org.apache.jena.graph.Graph asReadOnlyGraph(org.apache.jena.graph.Graph g)
g - public static org.apache.jena.ontology.OntModel createOntologyModel(org.apache.jena.ontology.OntModelSpec spec,
org.apache.jena.rdf.model.Model base)
public static org.apache.jena.rdf.model.Resource getPropertyResourceValue(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property p)
Resource.getPropertyResourceValue(Property)
which leaves an unclosed iterator.subject - the subjectp - the predicatepublic 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 - public 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.rdf.model.RDFNode toRDFNode(org.apache.jena.graph.Node node)
public 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 bindingsCopyright © 2017 TopQuadrant, Inc.. All rights reserved.