org.mulgara.mrg
Interface GraphExt

All Known Subinterfaces:
AppendableGraph, Graph, WritableGraph
All Known Implementing Classes:
AbstractGraph, AbstractGraphExt, GraphImpl, IndexedGraph, PackedGraphImpl, PackedIndexedGraph

public interface GraphExt

This class defines all the overloaded methods for Graph. The idea of overloading these methods is to avoid having to create Uri references and literals for every trivial operation. This class hiererachy is upside down, as the implementation of each of the methods in this class will be defined in terms of the methods found in Graph. However, this class is defined as a superclass of Graph to ensure that all Graphs have these extensions defined. The implementation of the methods in this interface are trivial wrappers to the Graph methods that they overload. These implementations can be found in AbstractGraphExt.


Method Summary
 boolean doesResourceExist(String r)
          Tests if a resource exists anywhere in the graph, where the resource is string representing a literal.
 boolean doesResourceExist(URI r)
          Tests if a resource exists anywhere in the graph, where the resource is a Uri reference.
 List<PropertyValue> getProperties(String s)
          Gets all the properties for a given subject, with a string representing a URI as the subject.
 List<PropertyValue> getProperties(URI s)
          Gets all the properties for a given subject, with a URI as the subject.
 List<ObjectNode> getRdfList(String s, PredicateNode p)
          Gets an rdf:List property from an object.
 List<ObjectNode> getRdfList(String s, String p)
          Gets an rdf:List property from an object.
 List<ObjectNode> getRdfList(String s, URI p)
          Gets an rdf:List property from an object.
 List<ObjectNode> getRdfList(SubjectNode s, String p)
          Gets an rdf:List property from an object.
 List<ObjectNode> getRdfList(SubjectNode s, URI p)
          Gets an rdf:List property from an object.
 List<ObjectNode> getRdfList(URI s, PredicateNode p)
          Gets an rdf:List property from an object.
 List<ObjectNode> getRdfList(URI s, String p)
          Gets an rdf:List property from an object.
 List<ObjectNode> getRdfList(URI s, URI p)
          Gets an rdf:List property from an object.
 List<SubjectNode> getSubjects(PredicateNode property, String value)
          Gets all the subjects that share a given property/value.
 List<SubjectNode> getSubjects(String property, ObjectNode value)
          Gets all the subjects that share a given property/value.
 List<SubjectNode> getSubjects(String property, String value)
          Gets all the subjects that share a given property/value.
 List<SubjectNode> getSubjects(String property, URI value)
          Gets all the subjects that share a given property/value.
 List<SubjectNode> getSubjects(URI property, ObjectNode value)
          Gets all the subjects that share a given property/value.
 List<SubjectNode> getSubjects(URI property, String value)
          Gets all the subjects that share a given property/value.
 List<SubjectNode> getSubjects(URI property, URI value)
          Gets all the subjects that share a given property/value.
 ObjectNode getValue(String s, PredicateNode p)
          Gets a single value for a given property on a subject.
 ObjectNode getValue(String s, String p)
          Gets a single value for a given property on a subject.
 ObjectNode getValue(String s, URI p)
          Gets a single value for a given property on a subject.
 ObjectNode getValue(SubjectNode s, String p)
          Gets a single value for a given property on a subject.
 ObjectNode getValue(SubjectNode s, URI p)
          Gets a single value for a given property on a subject.
 ObjectNode getValue(URI s, PredicateNode p)
          Gets a single value for a given property on a subject.
 ObjectNode getValue(URI s, String p)
          Gets a single value for a given property on a subject.
 ObjectNode getValue(URI s, URI p)
          Gets a single value for a given property on a subject.
 List<ObjectNode> getValues(String s, PredicateNode p)
          Gets all the values for a given property on a subject.
 List<ObjectNode> getValues(String s, String p)
          Gets all the values for a given property on a subject.
 List<ObjectNode> getValues(String s, URI p)
          Gets all the values for a given property on a subject.
 List<ObjectNode> getValues(SubjectNode s, String p)
          Gets all the values for a given property on a subject.
 List<ObjectNode> getValues(SubjectNode s, URI p)
          Gets all the values for a given property on a subject.
 List<ObjectNode> getValues(URI s, PredicateNode p)
          Gets all the values for a given property on a subject.
 List<ObjectNode> getValues(URI s, String p)
          Gets all the values for a given property on a subject.
 List<ObjectNode> getValues(URI s, URI p)
          Gets all the values for a given property on a subject.
 boolean isAsserted(String s, PredicateNode p, ObjectNode o)
          Tests if a triple has been asserted.
 boolean isAsserted(String s, PredicateNode p, String o)
          Tests if a triple has been asserted.
 boolean isAsserted(String s, PredicateNode p, URI o)
          Tests if a triple has been asserted.
 boolean isAsserted(String s, String p, ObjectNode o)
          Tests if a triple has been asserted.
 boolean isAsserted(String s, String p, String o)
          Tests if a triple has been asserted.
 boolean isAsserted(String s, String p, URI o)
          Tests if a triple has been asserted.
 boolean isAsserted(String s, URI p, ObjectNode o)
          Tests if a triple has been asserted.
 boolean isAsserted(String s, URI p, String o)
          Tests if a triple has been asserted.
 boolean isAsserted(String s, URI p, URI o)
          Tests if a triple has been asserted.
 boolean isAsserted(SubjectNode s, PredicateNode p, String o)
          Tests if a triple has been asserted.
 boolean isAsserted(SubjectNode s, PredicateNode p, URI o)
          Tests if a triple has been asserted.
 boolean isAsserted(SubjectNode s, String p, ObjectNode o)
          Tests if a triple has been asserted.
 boolean isAsserted(SubjectNode s, String p, String o)
          Tests if a triple has been asserted.
 boolean isAsserted(SubjectNode s, String p, URI o)
          Tests if a triple has been asserted.
 boolean isAsserted(SubjectNode s, URI p, ObjectNode o)
          Tests if a triple has been asserted.
 boolean isAsserted(SubjectNode s, URI p, String o)
          Tests if a triple has been asserted.
 boolean isAsserted(SubjectNode s, URI p, URI o)
          Tests if a triple has been asserted.
 boolean isAsserted(URI s, PredicateNode p, ObjectNode o)
          Tests if a triple has been asserted.
 boolean isAsserted(URI s, PredicateNode p, String o)
          Tests if a triple has been asserted.
 boolean isAsserted(URI s, PredicateNode p, URI o)
          Tests if a triple has been asserted.
 boolean isAsserted(URI s, String p, ObjectNode o)
          Tests if a triple has been asserted.
 boolean isAsserted(URI s, String p, String o)
          Tests if a triple has been asserted.
 boolean isAsserted(URI s, String p, URI o)
          Tests if a triple has been asserted.
 boolean isAsserted(URI s, URI p, ObjectNode o)
          Tests if a triple has been asserted.
 boolean isAsserted(URI s, URI p, String o)
          Tests if a triple has been asserted.
 boolean isAsserted(URI s, URI p, URI o)
          Tests if a triple has been asserted.
 Graph matchSubgraphX(String s, PredicateNode p, ObjectNode o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Graph matchSubgraphX(String s, PredicateNode p, String o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Graph matchSubgraphX(String s, PredicateNode p, URI o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Graph matchSubgraphX(String s, String p, ObjectNode o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Graph matchSubgraphX(String s, String p, String o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Graph matchSubgraphX(String s, String p, URI o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Graph matchSubgraphX(String s, URI p, ObjectNode o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Graph matchSubgraphX(String s, URI p, String o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Graph matchSubgraphX(String s, URI p, URI o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Graph matchSubgraphX(SubjectNode s, PredicateNode p, String o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Graph matchSubgraphX(SubjectNode s, PredicateNode p, URI o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Graph matchSubgraphX(SubjectNode s, String p, ObjectNode o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Graph matchSubgraphX(SubjectNode s, String p, String o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Graph matchSubgraphX(SubjectNode s, String p, URI o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Graph matchSubgraphX(SubjectNode s, URI p, ObjectNode o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Graph matchSubgraphX(SubjectNode s, URI p, String o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Graph matchSubgraphX(SubjectNode s, URI p, URI o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Graph matchSubgraphX(URI s, PredicateNode p, ObjectNode o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Graph matchSubgraphX(URI s, PredicateNode p, String o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Graph matchSubgraphX(URI s, PredicateNode p, URI o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Graph matchSubgraphX(URI s, String p, ObjectNode o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Graph matchSubgraphX(URI s, String p, String o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Graph matchSubgraphX(URI s, String p, URI o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Graph matchSubgraphX(URI s, URI p, ObjectNode o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Graph matchSubgraphX(URI s, URI p, String o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Graph matchSubgraphX(URI s, URI p, URI o)
          Returns a subgraph of this graph that only contains the triples that match a given pattern.
 Iterator<Triple> matchX(String s, PredicateNode p, ObjectNode o)
          Find all triples that match a given pattern.
 Iterator<Triple> matchX(String s, PredicateNode p, String o)
          Find all triples that match a given pattern.
 Iterator<Triple> matchX(String s, PredicateNode p, URI o)
          Find all triples that match a given pattern.
 Iterator<Triple> matchX(String s, String p, ObjectNode o)
          Find all triples that match a given pattern.
 Iterator<Triple> matchX(String s, String p, String o)
          Find all triples that match a given pattern.
 Iterator<Triple> matchX(String s, String p, URI o)
          Find all triples that match a given pattern.
 Iterator<Triple> matchX(String s, URI p, ObjectNode o)
          Find all triples that match a given pattern.
 Iterator<Triple> matchX(String s, URI p, String o)
          Find all triples that match a given pattern.
 Iterator<Triple> matchX(String s, URI p, URI o)
          Find all triples that match a given pattern.
 Iterator<Triple> matchX(SubjectNode s, PredicateNode p, String o)
          Find all triples that match a given pattern.
 Iterator<Triple> matchX(SubjectNode s, PredicateNode p, URI o)
          Find all triples that match a given pattern.
 Iterator<Triple> matchX(SubjectNode s, String p, ObjectNode o)
          Find all triples that match a given pattern.
 Iterator<Triple> matchX(SubjectNode s, String p, String o)
          Find all triples that match a given pattern.
 Iterator<Triple> matchX(SubjectNode s, String p, URI o)
          Find all triples that match a given pattern.
 Iterator<Triple> matchX(SubjectNode s, URI p, ObjectNode o)
          Find all triples that match a given pattern.
 Iterator<Triple> matchX(SubjectNode s, URI p, String o)
          Find all triples that match a given pattern.
 Iterator<Triple> matchX(SubjectNode s, URI p, URI o)
          Find all triples that match a given pattern.
 Iterator<Triple> matchX(URI s, PredicateNode p, ObjectNode o)
          Find all triples that match a given pattern.
 Iterator<Triple> matchX(URI s, PredicateNode p, String o)
          Find all triples that match a given pattern.
 Iterator<Triple> matchX(URI s, PredicateNode p, URI o)
          Find all triples that match a given pattern.
 Iterator<Triple> matchX(URI s, String p, ObjectNode o)
          Find all triples that match a given pattern.
 Iterator<Triple> matchX(URI s, String p, String o)
          Find all triples that match a given pattern.
 Iterator<Triple> matchX(URI s, String p, URI o)
          Find all triples that match a given pattern.
 Iterator<Triple> matchX(URI s, URI p, ObjectNode o)
          Find all triples that match a given pattern.
 Iterator<Triple> matchX(URI s, URI p, String o)
          Find all triples that match a given pattern.
 Iterator<Triple> matchX(URI s, URI p, URI o)
          Find all triples that match a given pattern.
 

Method Detail

isAsserted

boolean isAsserted(URI s,
                   PredicateNode p,
                   ObjectNode o)
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for, as a URI.
p - The predicate of the triple to search for.
o - The object of the triple to search for.
Returns:
true only if the triple exists in the graph.

isAsserted

boolean isAsserted(SubjectNode s,
                   URI p,
                   ObjectNode o)
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for.
p - The predicate of the triple to search for, as a URI.
o - The object of the triple to search for.
Returns:
true only if the triple exists in the graph.

isAsserted

boolean isAsserted(SubjectNode s,
                   PredicateNode p,
                   URI o)
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for.
p - The predicate of the triple to search for.
o - The object of the triple to search for, as a URI.
Returns:
true only if the triple exists in the graph.

isAsserted

boolean isAsserted(URI s,
                   URI p,
                   ObjectNode o)
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for, as a URI.
p - The predicate of the triple to search for, as a URI.
o - The object of the triple to search for.
Returns:
true only if the triple exists in the graph.

isAsserted

boolean isAsserted(URI s,
                   PredicateNode p,
                   URI o)
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for, as a URI.
p - The predicate of the triple to search for.
o - The object of the triple to search for, as a URI.
Returns:
true only if the triple exists in the graph.

isAsserted

boolean isAsserted(SubjectNode s,
                   URI p,
                   URI o)
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for.
p - The predicate of the triple to search for, as a URI.
o - The object of the triple to search for, as a URI.
Returns:
true only if the triple exists in the graph.

isAsserted

boolean isAsserted(URI s,
                   URI p,
                   URI o)
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for, as a URI.
p - The predicate of the triple to search for, as a URI.
o - The object of the triple to search for, as a URI.
Returns:
true only if the triple exists in the graph.

isAsserted

boolean isAsserted(String s,
                   PredicateNode p,
                   ObjectNode o)
                   throws URISyntaxException
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for, as a String.
p - The predicate of the triple to search for.
o - The object of the triple to search for.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

isAsserted

boolean isAsserted(SubjectNode s,
                   String p,
                   ObjectNode o)
                   throws URISyntaxException
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for.
p - The predicate of the triple to search for, as a String.
o - The object of the triple to search for.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

isAsserted

boolean isAsserted(SubjectNode s,
                   PredicateNode p,
                   String o)
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for.
p - The predicate of the triple to search for.
o - The literal object of the triple to search for, as a String.
Returns:
true only if the triple exists in the graph.

isAsserted

boolean isAsserted(String s,
                   String p,
                   ObjectNode o)
                   throws URISyntaxException
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for, as a String.
p - The predicate of the triple to search for, as a String.
o - The object of the triple to search for.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

isAsserted

boolean isAsserted(String s,
                   PredicateNode p,
                   String o)
                   throws URISyntaxException
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for, as a String.
p - The predicate of the triple to search for.
o - The literal object of the triple to search for, as a String.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

isAsserted

boolean isAsserted(SubjectNode s,
                   String p,
                   String o)
                   throws URISyntaxException
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for.
p - The predicate of the triple to search for, as a String.
o - The literal object of the triple to search for, as a String.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

isAsserted

boolean isAsserted(String s,
                   String p,
                   String o)
                   throws URISyntaxException
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for, as a String.
p - The predicate of the triple to search for, as a String.
o - The literal object of the triple to search for, as a String.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

isAsserted

boolean isAsserted(String s,
                   URI p,
                   ObjectNode o)
                   throws URISyntaxException
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for, as a String.
p - The predicate of the triple to search for, as a URI.
o - The object of the triple to search for.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

isAsserted

boolean isAsserted(String s,
                   PredicateNode p,
                   URI o)
                   throws URISyntaxException
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for, as a String.
p - The predicate of the triple to search for.
o - The object of the triple to search for, as a URI.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

isAsserted

boolean isAsserted(String s,
                   URI p,
                   URI o)
                   throws URISyntaxException
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for, as a String.
p - The predicate of the triple to search for, as a URI.
o - The object of the triple to search for, as a URI.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

isAsserted

boolean isAsserted(URI s,
                   String p,
                   ObjectNode o)
                   throws URISyntaxException
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for, as a URI.
p - The predicate of the triple to search for, as a String.
o - The object of the triple to search for.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

isAsserted

boolean isAsserted(SubjectNode s,
                   String p,
                   URI o)
                   throws URISyntaxException
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for.
p - The predicate of the triple to search for, as a String.
o - The object of the triple to search for, as a URI.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

isAsserted

boolean isAsserted(URI s,
                   String p,
                   URI o)
                   throws URISyntaxException
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for, as a URI.
p - The predicate of the triple to search for, as a String.
o - The object of the triple to search for, as a URI.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

isAsserted

boolean isAsserted(URI s,
                   PredicateNode p,
                   String o)
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for, as a URI.
p - The predicate of the triple to search for.
o - The literal object of the triple to search for, as a String.
Returns:
true only if the triple exists in the graph.

isAsserted

boolean isAsserted(SubjectNode s,
                   URI p,
                   String o)
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for.
p - The predicate of the triple to search for, as a URI.
o - The literal object of the triple to search for, as a String.
Returns:
true only if the triple exists in the graph.

isAsserted

boolean isAsserted(URI s,
                   URI p,
                   String o)
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for, as a URI.
p - The predicate of the triple to search for, as a URI.
o - The literal object of the triple to search for, as a String.
Returns:
true only if the triple exists in the graph.

isAsserted

boolean isAsserted(String s,
                   String p,
                   URI o)
                   throws URISyntaxException
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for, as a String.
p - The predicate of the triple to search for, as a String.
o - The object of the triple to search for, as a URI.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

isAsserted

boolean isAsserted(String s,
                   URI p,
                   String o)
                   throws URISyntaxException
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for, as a String.
p - The predicate of the triple to search for, as a URI.
o - The literal object of the triple to search for, as a String.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

isAsserted

boolean isAsserted(URI s,
                   String p,
                   String o)
                   throws URISyntaxException
Tests if a triple has been asserted. Be careful of blank nodes, as they will only match if they are exactly alike.

Parameters:
s - The subject of the triple to search for, as a URI.
p - The predicate of the triple to search for, as a String.
o - The literal object of the triple to search for, as a String.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

doesResourceExist

boolean doesResourceExist(URI r)
Tests if a resource exists anywhere in the graph, where the resource is a Uri reference.

Parameters:
r - The resource to test.
Returns:
true only if the resource is used somewhere in the graph.

doesResourceExist

boolean doesResourceExist(String r)
Tests if a resource exists anywhere in the graph, where the resource is string representing a literal.

Parameters:
r - The string form of the literal resource to test.
Returns:
true only if the resource is used somewhere in the graph.

getProperties

List<PropertyValue> getProperties(URI s)
Gets all the properties for a given subject, with a URI as the subject.

Parameters:
s - The subject as a URI.
Returns:
A list of property/value pairs.

getProperties

List<PropertyValue> getProperties(String s)
                                  throws URISyntaxException
Gets all the properties for a given subject, with a string representing a URI as the subject.

Parameters:
s - The subject as a string.
Returns:
A list of property/value pairs.
Throws:
URISyntaxException

getValues

List<ObjectNode> getValues(SubjectNode s,
                           URI p)
Gets all the values for a given property on a subject.

Parameters:
s - The subject to get the properties for.
p - The property of interest, as a URI.
Returns:
The list of values for the property on that subject.

getValues

List<ObjectNode> getValues(URI s,
                           PredicateNode p)
Gets all the values for a given property on a subject.

Parameters:
s - The subject to get the properties for, as a URI.
p - The property of interest.
Returns:
The list of values for the property on that subject.

getValues

List<ObjectNode> getValues(URI s,
                           URI p)
Gets all the values for a given property on a subject.

Parameters:
s - The subject to get the properties for, as a URI.
p - The property of interest, as a URI.
Returns:
The list of values for the property on that subject.

getValues

List<ObjectNode> getValues(SubjectNode s,
                           String p)
                           throws URISyntaxException
Gets all the values for a given property on a subject.

Parameters:
s - The subject to get the properties for.
p - The property of interest, as a string.
Returns:
The list of values for the property on that subject.
Throws:
URISyntaxException

getValues

List<ObjectNode> getValues(String s,
                           PredicateNode p)
                           throws URISyntaxException
Gets all the values for a given property on a subject.

Parameters:
s - The subject to get the properties for, as a string.
p - The property of interest.
Returns:
The list of values for the property on that subject.
Throws:
URISyntaxException

getValues

List<ObjectNode> getValues(String s,
                           String p)
                           throws URISyntaxException
Gets all the values for a given property on a subject.

Parameters:
s - The subject to get the properties for, as a string.
p - The property of interest, as a string.
Returns:
The list of values for the property on that subject.
Throws:
URISyntaxException

getValues

List<ObjectNode> getValues(URI s,
                           String p)
                           throws URISyntaxException
Gets all the values for a given property on a subject.

Parameters:
s - The subject to get the properties for, as a URI.
p - The property of interest, as a string.
Returns:
The list of values for the property on that subject.
Throws:
URISyntaxException

getValues

List<ObjectNode> getValues(String s,
                           URI p)
                           throws URISyntaxException
Gets all the values for a given property on a subject.

Parameters:
s - The subject to get the properties for, as a string.
p - The property of interest, as a URI.
Returns:
The list of values for the property on that subject.
Throws:
URISyntaxException

getValue

ObjectNode getValue(SubjectNode s,
                    URI p)
Gets a single value for a given property on a subject.

Parameters:
s - The subject to get the properties for.
p - The property of interest, as a URI.
Returns:
The first values for the property on that subject.

getValue

ObjectNode getValue(URI s,
                    PredicateNode p)
Gets a single value for a given property on a subject.

Parameters:
s - The subject to get the properties for, as a URI.
p - The property of interest.
Returns:
The first values for the property on that subject.

getValue

ObjectNode getValue(URI s,
                    URI p)
Gets a single value for a given property on a subject.

Parameters:
s - The subject to get the properties for, as a URI.
p - The property of interest, as a URI.
Returns:
The first values for the property on that subject.

getValue

ObjectNode getValue(SubjectNode s,
                    String p)
                    throws URISyntaxException
Gets a single value for a given property on a subject.

Parameters:
s - The subject to get the properties for.
p - The property of interest, as a string.
Returns:
The first values for the property on that subject.
Throws:
URISyntaxException

getValue

ObjectNode getValue(String s,
                    PredicateNode p)
                    throws URISyntaxException
Gets a single value for a given property on a subject.

Parameters:
s - The subject to get the properties for, as a string.
p - The property of interest.
Returns:
The first values for the property on that subject.
Throws:
URISyntaxException

getValue

ObjectNode getValue(String s,
                    String p)
                    throws URISyntaxException
Gets a single value for a given property on a subject.

Parameters:
s - The subject to get the properties for, as a string.
p - The property of interest, as a string.
Returns:
The first values for the property on that subject.
Throws:
URISyntaxException

getValue

ObjectNode getValue(URI s,
                    String p)
                    throws URISyntaxException
Gets a single value for a given property on a subject.

Parameters:
s - The subject to get the properties for, as a URI.
p - The property of interest, as a string.
Returns:
The first values for the property on that subject.
Throws:
URISyntaxException

getValue

ObjectNode getValue(String s,
                    URI p)
                    throws URISyntaxException
Gets a single value for a given property on a subject.

Parameters:
s - The subject to get the properties for, as a string.
p - The property of interest, as a URI.
Returns:
The first values for the property on that subject.
Throws:
URISyntaxException

getRdfList

List<ObjectNode> getRdfList(URI s,
                            PredicateNode p)
Gets an rdf:List property from an object. If more than one value exists for this property, then returns the first and assumes it's a list.

Parameters:
s - The subject to get the property for, as a URI.
p - The property of interest.
Returns:
The list associates with the property on that subject.

getRdfList

List<ObjectNode> getRdfList(String s,
                            PredicateNode p)
                            throws URISyntaxException
Gets an rdf:List property from an object. If more than one value exists for this property, then returns the first and assumes it's a list.

Parameters:
s - The subject to get the property for, as a string.
p - The property of interest.
Returns:
The list associates with the property on that subject.
Throws:
URISyntaxException

getRdfList

List<ObjectNode> getRdfList(SubjectNode s,
                            URI p)
Gets an rdf:List property from an object. If more than one value exists for this property, then returns the first and assumes it's a list.

Parameters:
s - The subject to get the property for.
p - The property of interest, as a URI.
Returns:
The list associates with the property on that subject.

getRdfList

List<ObjectNode> getRdfList(URI s,
                            URI p)
Gets an rdf:List property from an object. If more than one value exists for this property, then returns the first and assumes it's a list.

Parameters:
s - The subject to get the property for, as a URI.
p - The property of interest, as a URI.
Returns:
The list associates with the property on that subject.

getRdfList

List<ObjectNode> getRdfList(String s,
                            URI p)
                            throws URISyntaxException
Gets an rdf:List property from an object. If more than one value exists for this property, then returns the first and assumes it's a list.

Parameters:
s - The subject to get the property for, as a string.
p - The property of interest, as a URI.
Returns:
The list associates with the property on that subject.
Throws:
URISyntaxException

getRdfList

List<ObjectNode> getRdfList(SubjectNode s,
                            String p)
                            throws URISyntaxException
Gets an rdf:List property from an object. If more than one value exists for this property, then returns the first and assumes it's a list.

Parameters:
s - The subject to get the property for.
p - The property of interest, as a string.
Returns:
The list associates with the property on that subject.
Throws:
URISyntaxException

getRdfList

List<ObjectNode> getRdfList(URI s,
                            String p)
                            throws URISyntaxException
Gets an rdf:List property from an object. If more than one value exists for this property, then returns the first and assumes it's a list.

Parameters:
s - The subject to get the property for, as URI.
p - The property of interest, as a string.
Returns:
The list associates with the property on that subject.
Throws:
URISyntaxException

getRdfList

List<ObjectNode> getRdfList(String s,
                            String p)
                            throws URISyntaxException
Gets an rdf:List property from an object. If more than one value exists for this property, then returns the first and assumes it's a list.

Parameters:
s - The subject to get the property for, as a string.
p - The property of interest, as a string.
Returns:
The list associates with the property on that subject.
Throws:
URISyntaxException

getSubjects

List<SubjectNode> getSubjects(URI property,
                              ObjectNode value)
Gets all the subjects that share a given property/value.

Parameters:
property - The property being looked for, as a URI.
value - The value being looked for.
Returns:
The subjects that have the value for the property.

getSubjects

List<SubjectNode> getSubjects(String property,
                              ObjectNode value)
                              throws URISyntaxException
Gets all the subjects that share a given property/value.

Parameters:
property - The property being looked for, as a string.
value - The value being looked for.
Returns:
The subjects that have the value for the property.
Throws:
URISyntaxException

getSubjects

List<SubjectNode> getSubjects(URI property,
                              URI value)
Gets all the subjects that share a given property/value.

Parameters:
property - The property being looked for, as a URI.
value - The value being looked for, as a URI.
Returns:
The subjects that have the value for the property.

getSubjects

List<SubjectNode> getSubjects(String property,
                              URI value)
                              throws URISyntaxException
Gets all the subjects that share a given property/value.

Parameters:
property - The property being looked for, as a string.
value - The value being looked for, as a URI.
Returns:
The subjects that have the value for the property.
Throws:
URISyntaxException

getSubjects

List<SubjectNode> getSubjects(PredicateNode property,
                              String value)
Gets all the subjects that share a given property/value.

Parameters:
property - The property being looked for.
value - The literal value being looked for.
Returns:
The subjects that have the value for the property.

getSubjects

List<SubjectNode> getSubjects(URI property,
                              String value)
Gets all the subjects that share a given property/value.

Parameters:
property - The property being looked for, as a URI.
value - The literal value being looked for.
Returns:
The subjects that have the value for the property.

getSubjects

List<SubjectNode> getSubjects(String property,
                              String value)
                              throws URISyntaxException
Gets all the subjects that share a given property/value.

Parameters:
property - The property being looked for, as a string.
value - The literal value being looked for.
Returns:
The subjects that have the value for the property.
Throws:
URISyntaxException

matchX

Iterator<Triple> matchX(URI s,
                        PredicateNode p,
                        ObjectNode o)
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a URI.
p - The predicate of the triple to match.
o - The object of the triple to match.
Returns:
true only if the triple exists in the graph.

matchX

Iterator<Triple> matchX(SubjectNode s,
                        URI p,
                        ObjectNode o)
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triple to match.
p - The predicate of the triples to match, as a URI.
o - The object of the triple to match.
Returns:
true only if the triple exists in the graph.

matchX

Iterator<Triple> matchX(SubjectNode s,
                        PredicateNode p,
                        URI o)
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triple to match.
p - The predicate of the triple to match.
o - The object of the triples to match, as a URI.
Returns:
true only if the triple exists in the graph.

matchX

Iterator<Triple> matchX(URI s,
                        URI p,
                        ObjectNode o)
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a URI.
p - The predicate of the triples to match, as a URI.
o - The object of the triple to match.
Returns:
true only if the triple exists in the graph.

matchX

Iterator<Triple> matchX(URI s,
                        PredicateNode p,
                        URI o)
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a URI.
p - The predicate of the triple to match.
o - The object of the triples to match, as a URI.
Returns:
true only if the triple exists in the graph.

matchX

Iterator<Triple> matchX(SubjectNode s,
                        URI p,
                        URI o)
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triple to match.
p - The predicate of the triples to match, as a URI.
o - The object of the triples to match, as a URI.
Returns:
true only if the triple exists in the graph.

matchX

Iterator<Triple> matchX(URI s,
                        URI p,
                        URI o)
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a URI.
p - The predicate of the triples to match, as a URI.
o - The object of the triples to match, as a URI.
Returns:
true only if the triple exists in the graph.

matchX

Iterator<Triple> matchX(String s,
                        PredicateNode p,
                        ObjectNode o)
                        throws URISyntaxException
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a String.
p - The predicate of the triple to match.
o - The object of the triple to match.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchX

Iterator<Triple> matchX(SubjectNode s,
                        String p,
                        ObjectNode o)
                        throws URISyntaxException
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triple to match.
p - The predicate of the triples to match, as a String.
o - The object of the triple to match.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchX

Iterator<Triple> matchX(SubjectNode s,
                        PredicateNode p,
                        String o)
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triple to match.
p - The predicate of the triple to match.
o - The literal object of the triples to match, as a String.
Returns:
true only if the triple exists in the graph.

matchX

Iterator<Triple> matchX(String s,
                        String p,
                        ObjectNode o)
                        throws URISyntaxException
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a String.
p - The predicate of the triples to match, as a String.
o - The object of the triple to match.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchX

Iterator<Triple> matchX(String s,
                        PredicateNode p,
                        String o)
                        throws URISyntaxException
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a String.
p - The predicate of the triple to match.
o - The literal object of the triples to match, as a String.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchX

Iterator<Triple> matchX(SubjectNode s,
                        String p,
                        String o)
                        throws URISyntaxException
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triple to match.
p - The predicate of the triples to match, as a String.
o - The literal object of the triples to match, as a String.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchX

Iterator<Triple> matchX(String s,
                        String p,
                        String o)
                        throws URISyntaxException
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a String.
p - The predicate of the triples to match, as a String.
o - The literal object of the triples to match, as a String.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchX

Iterator<Triple> matchX(String s,
                        URI p,
                        ObjectNode o)
                        throws URISyntaxException
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a String.
p - The predicate of the triples to match, as a URI.
o - The object of the triple to match.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchX

Iterator<Triple> matchX(String s,
                        PredicateNode p,
                        URI o)
                        throws URISyntaxException
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a String.
p - The predicate of the triple to match.
o - The object of the triples to match, as a URI.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchX

Iterator<Triple> matchX(String s,
                        URI p,
                        URI o)
                        throws URISyntaxException
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a String.
p - The predicate of the triples to match, as a URI.
o - The object of the triples to match, as a URI.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchX

Iterator<Triple> matchX(URI s,
                        String p,
                        ObjectNode o)
                        throws URISyntaxException
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a URI.
p - The predicate of the triples to match, as a String.
o - The object of the triple to match.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchX

Iterator<Triple> matchX(SubjectNode s,
                        String p,
                        URI o)
                        throws URISyntaxException
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triple to match.
p - The predicate of the triples to match, as a String.
o - The object of the triples to match, as a URI.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchX

Iterator<Triple> matchX(URI s,
                        String p,
                        URI o)
                        throws URISyntaxException
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a URI.
p - The predicate of the triples to match, as a String.
o - The object of the triples to match, as a URI.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchX

Iterator<Triple> matchX(URI s,
                        PredicateNode p,
                        String o)
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a URI.
p - The predicate of the triple to match.
o - The literal object of the triples to match, as a String.
Returns:
true only if the triple exists in the graph.

matchX

Iterator<Triple> matchX(SubjectNode s,
                        URI p,
                        String o)
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triple to match.
p - The predicate of the triples to match, as a URI.
o - The literal object of the triples to match, as a String.
Returns:
true only if the triple exists in the graph.

matchX

Iterator<Triple> matchX(URI s,
                        URI p,
                        String o)
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a URI.
p - The predicate of the triples to match, as a URI.
o - The literal object of the triples to match, as a String.
Returns:
true only if the triple exists in the graph.

matchX

Iterator<Triple> matchX(String s,
                        String p,
                        URI o)
                        throws URISyntaxException
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a String.
p - The predicate of the triples to match, as a String.
o - The object of the triples to match, as a URI.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchX

Iterator<Triple> matchX(String s,
                        URI p,
                        String o)
                        throws URISyntaxException
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a String.
p - The predicate of the triples to match, as a URI.
o - The literal object of the triples to match, as a String.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchX

Iterator<Triple> matchX(URI s,
                        String p,
                        String o)
                        throws URISyntaxException
Find all triples that match a given pattern. The resulting iterator may be live, and can lead to a ConcurrentModificationException if the graph is modified. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a URI.
p - The predicate of the triples to match, as a String.
o - The literal object of the triples to match, as a String.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchSubgraphX

Graph matchSubgraphX(URI s,
                     PredicateNode p,
                     ObjectNode o)
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a URI.
p - The predicate of the triple to match.
o - The object of the triple to match.
Returns:
true only if the triple exists in the graph.

matchSubgraphX

Graph matchSubgraphX(SubjectNode s,
                     URI p,
                     ObjectNode o)
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triple to match.
p - The predicate of the triples to match, as a URI.
o - The object of the triple to match.
Returns:
true only if the triple exists in the graph.

matchSubgraphX

Graph matchSubgraphX(SubjectNode s,
                     PredicateNode p,
                     URI o)
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triple to match.
p - The predicate of the triple to match.
o - The object of the triples to match, as a URI.
Returns:
true only if the triple exists in the graph.

matchSubgraphX

Graph matchSubgraphX(URI s,
                     URI p,
                     ObjectNode o)
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a URI.
p - The predicate of the triples to match, as a URI.
o - The object of the triple to match.
Returns:
true only if the triple exists in the graph.

matchSubgraphX

Graph matchSubgraphX(URI s,
                     PredicateNode p,
                     URI o)
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a URI.
p - The predicate of the triple to match.
o - The object of the triples to match, as a URI.
Returns:
true only if the triple exists in the graph.

matchSubgraphX

Graph matchSubgraphX(SubjectNode s,
                     URI p,
                     URI o)
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triple to match.
p - The predicate of the triples to match, as a URI.
o - The object of the triples to match, as a URI.
Returns:
true only if the triple exists in the graph.

matchSubgraphX

Graph matchSubgraphX(URI s,
                     URI p,
                     URI o)
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a URI.
p - The predicate of the triples to match, as a URI.
o - The object of the triples to match, as a URI.
Returns:
true only if the triple exists in the graph.

matchSubgraphX

Graph matchSubgraphX(String s,
                     PredicateNode p,
                     ObjectNode o)
                     throws URISyntaxException
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a String.
p - The predicate of the triple to match.
o - The object of the triple to match.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchSubgraphX

Graph matchSubgraphX(SubjectNode s,
                     String p,
                     ObjectNode o)
                     throws URISyntaxException
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triple to match.
p - The predicate of the triples to match, as a String.
o - The object of the triple to match.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchSubgraphX

Graph matchSubgraphX(SubjectNode s,
                     PredicateNode p,
                     String o)
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triple to match.
p - The predicate of the triple to match.
o - The literal object of the triples to match, as a String.
Returns:
true only if the triple exists in the graph.

matchSubgraphX

Graph matchSubgraphX(String s,
                     String p,
                     ObjectNode o)
                     throws URISyntaxException
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a String.
p - The predicate of the triples to match, as a String.
o - The object of the triple to match.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchSubgraphX

Graph matchSubgraphX(String s,
                     PredicateNode p,
                     String o)
                     throws URISyntaxException
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a String.
p - The predicate of the triple to match.
o - The literal object of the triples to match, as a String.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchSubgraphX

Graph matchSubgraphX(SubjectNode s,
                     String p,
                     String o)
                     throws URISyntaxException
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triple to match.
p - The predicate of the triples to match, as a String.
o - The literal object of the triples to match, as a String.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchSubgraphX

Graph matchSubgraphX(String s,
                     String p,
                     String o)
                     throws URISyntaxException
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a String.
p - The predicate of the triples to match, as a String.
o - The literal object of the triples to match, as a String.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchSubgraphX

Graph matchSubgraphX(String s,
                     URI p,
                     ObjectNode o)
                     throws URISyntaxException
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a String.
p - The predicate of the triples to match, as a URI.
o - The object of the triple to match.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchSubgraphX

Graph matchSubgraphX(String s,
                     PredicateNode p,
                     URI o)
                     throws URISyntaxException
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a String.
p - The predicate of the triple to match.
o - The object of the triples to match, as a URI.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchSubgraphX

Graph matchSubgraphX(String s,
                     URI p,
                     URI o)
                     throws URISyntaxException
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a String.
p - The predicate of the triples to match, as a URI.
o - The object of the triples to match, as a URI.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchSubgraphX

Graph matchSubgraphX(URI s,
                     String p,
                     ObjectNode o)
                     throws URISyntaxException
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a URI.
p - The predicate of the triples to match, as a String.
o - The object of the triple to match.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchSubgraphX

Graph matchSubgraphX(SubjectNode s,
                     String p,
                     URI o)
                     throws URISyntaxException
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triple to match.
p - The predicate of the triples to match, as a String.
o - The object of the triples to match, as a URI.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchSubgraphX

Graph matchSubgraphX(URI s,
                     String p,
                     URI o)
                     throws URISyntaxException
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a URI.
p - The predicate of the triples to match, as a String.
o - The object of the triples to match, as a URI.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchSubgraphX

Graph matchSubgraphX(URI s,
                     PredicateNode p,
                     String o)
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a URI.
p - The predicate of the triple to match.
o - The literal object of the triples to match, as a String.
Returns:
true only if the triple exists in the graph.

matchSubgraphX

Graph matchSubgraphX(SubjectNode s,
                     URI p,
                     String o)
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triple to match.
p - The predicate of the triples to match, as a URI.
o - The literal object of the triples to match, as a String.
Returns:
true only if the triple exists in the graph.

matchSubgraphX

Graph matchSubgraphX(URI s,
                     URI p,
                     String o)
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a URI.
p - The predicate of the triples to match, as a URI.
o - The literal object of the triples to match, as a String.
Returns:
true only if the triple exists in the graph.

matchSubgraphX

Graph matchSubgraphX(String s,
                     String p,
                     URI o)
                     throws URISyntaxException
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a String.
p - The predicate of the triples to match, as a String.
o - The object of the triples to match, as a URI.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchSubgraphX

Graph matchSubgraphX(String s,
                     URI p,
                     String o)
                     throws URISyntaxException
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a String.
p - The predicate of the triples to match, as a URI.
o - The literal object of the triples to match, as a String.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.

matchSubgraphX

Graph matchSubgraphX(URI s,
                     String p,
                     String o)
                     throws URISyntaxException
Returns a subgraph of this graph that only contains the triples that match a given pattern. This method copies all of the required triples. Use null cast to the appropriate type for wildcards, to avoid ambiguity on the parameters.

Parameters:
s - The subject of the triples to match, as a URI.
p - The predicate of the triples to match, as a String.
o - The literal object of the triples to match, as a String.
Returns:
true only if the triple exists in the graph.
Throws:
URISyntaxException - if a string could not be converted to a Uri.


Copyright © 2011. All Rights Reserved.