org.mulgara.mrg
Class AbstractGraphExt

java.lang.Object
  extended by org.mulgara.mrg.AbstractGraphExt
All Implemented Interfaces:
Graph, GraphExt
Direct Known Subclasses:
AbstractGraph

public abstract class AbstractGraphExt
extends Object
implements Graph, GraphExt

This class groups all the overloaded methods for Graph together, and keeps them out of the way of the Graph implementation. Each method simply wraps its parameters appropriately and passes them on to the main method. Wherever a URI appears, this will be converted to a Uri reference. If a String is used in place of a SubjectNode or PredicateNode, then it will also be converted to a Uri, and hence is subject to a URI syntax check. If a String is used in place of an ObjectNode, then it will converted to an untyped literal instead. Therefore, if you need a URI in the object position, you will need to create either a URI or a Uri, since a string in this position will always be converted to a literal. The graph explicitly implements GraphExt, since these are the only methods that it will implement. However, this declaration was not required, since all Graphs are also GraphExts.


Field Summary
 
Fields inherited from interface org.mulgara.mrg.Graph
X
 
Constructor Summary
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(PredicateNode s, URI p)
           
 List<SubjectNode> getSubjects(String s, ObjectNode p)
          Gets all the subjects that share a given property/value.
 List<SubjectNode> getSubjects(String s, String p)
          Gets all the subjects that share a given property/value.
 List<SubjectNode> getSubjects(String s, URI p)
          Gets all the subjects that share a given property/value.
 List<SubjectNode> getSubjects(URI s, ObjectNode p)
          Gets all the subjects that share a given property/value.
 List<SubjectNode> getSubjects(URI s, String p)
          Gets all the subjects that share a given property/value.
 List<SubjectNode> getSubjects(URI s, URI p)
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mulgara.mrg.Graph
doesResourceExist, exportN3, exportN3, exportXML, exportXML, getObjects, getPredicates, getProperties, getRdfList, getSubjects, getSubjects, getTriples, getValue, getValues, isAsserted, isAsserted, isEmpty, match, matchSubgraph, size
 

Constructor Detail

AbstractGraphExt

public AbstractGraphExt()
Method Detail

isAsserted

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

Specified by:
isAsserted in interface GraphExt
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

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

Specified by:
isAsserted in interface GraphExt
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

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

Specified by:
isAsserted in interface GraphExt
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

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

Specified by:
isAsserted in interface GraphExt
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

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

Specified by:
isAsserted in interface GraphExt
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

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

Specified by:
isAsserted in interface GraphExt
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

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

Specified by:
isAsserted in interface GraphExt
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

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

Specified by:
isAsserted in interface GraphExt
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

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

Specified by:
isAsserted in interface GraphExt
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

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

Specified by:
isAsserted in interface GraphExt
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

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

Specified by:
isAsserted in interface GraphExt
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

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

Specified by:
isAsserted in interface GraphExt
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

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

Specified by:
isAsserted in interface GraphExt
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

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

Specified by:
isAsserted in interface GraphExt
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

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

Specified by:
isAsserted in interface GraphExt
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

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

Specified by:
isAsserted in interface GraphExt
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

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

Specified by:
isAsserted in interface GraphExt
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

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

Specified by:
isAsserted in interface GraphExt
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

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

Specified by:
isAsserted in interface GraphExt
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

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

Specified by:
isAsserted in interface GraphExt
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

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

Specified by:
isAsserted in interface GraphExt
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

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

Specified by:
isAsserted in interface GraphExt
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

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

Specified by:
isAsserted in interface GraphExt
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

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

Specified by:
isAsserted in interface GraphExt
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

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

Specified by:
isAsserted in interface GraphExt
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

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

Specified by:
isAsserted in interface GraphExt
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.

getProperties

public List<PropertyValue> getProperties(URI s)
Description copied from interface: GraphExt
Gets all the properties for a given subject, with a URI as the subject.

Specified by:
getProperties in interface GraphExt
Parameters:
s - The subject as a URI.
Returns:
A list of property/value pairs.

getProperties

public List<PropertyValue> getProperties(String s)
                                  throws URISyntaxException
Description copied from interface: GraphExt
Gets all the properties for a given subject, with a string representing a URI as the subject.

Specified by:
getProperties in interface GraphExt
Parameters:
s - The subject as a string.
Returns:
A list of property/value pairs.
Throws:
URISyntaxException

getValues

public List<ObjectNode> getValues(SubjectNode s,
                                  URI p)
Description copied from interface: GraphExt
Gets all the values for a given property on a subject.

Specified by:
getValues in interface GraphExt
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

public List<ObjectNode> getValues(URI s,
                                  PredicateNode p)
Description copied from interface: GraphExt
Gets all the values for a given property on a subject.

Specified by:
getValues in interface GraphExt
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

public List<ObjectNode> getValues(URI s,
                                  URI p)
Description copied from interface: GraphExt
Gets all the values for a given property on a subject.

Specified by:
getValues in interface GraphExt
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

public List<ObjectNode> getValues(SubjectNode s,
                                  String p)
                           throws URISyntaxException
Description copied from interface: GraphExt
Gets all the values for a given property on a subject.

Specified by:
getValues in interface GraphExt
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

public List<ObjectNode> getValues(String s,
                                  PredicateNode p)
                           throws URISyntaxException
Description copied from interface: GraphExt
Gets all the values for a given property on a subject.

Specified by:
getValues in interface GraphExt
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

public List<ObjectNode> getValues(URI s,
                                  String p)
                           throws URISyntaxException
Description copied from interface: GraphExt
Gets all the values for a given property on a subject.

Specified by:
getValues in interface GraphExt
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

public List<ObjectNode> getValues(String s,
                                  URI p)
                           throws URISyntaxException
Description copied from interface: GraphExt
Gets all the values for a given property on a subject.

Specified by:
getValues in interface GraphExt
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

getValues

public List<ObjectNode> getValues(String s,
                                  String p)
                           throws URISyntaxException
Description copied from interface: GraphExt
Gets all the values for a given property on a subject.

Specified by:
getValues in interface GraphExt
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

getValue

public ObjectNode getValue(SubjectNode s,
                           URI p)
Description copied from interface: GraphExt
Gets a single value for a given property on a subject.

Specified by:
getValue in interface GraphExt
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

public ObjectNode getValue(URI s,
                           PredicateNode p)
Description copied from interface: GraphExt
Gets a single value for a given property on a subject.

Specified by:
getValue in interface GraphExt
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

public ObjectNode getValue(URI s,
                           URI p)
Description copied from interface: GraphExt
Gets a single value for a given property on a subject.

Specified by:
getValue in interface GraphExt
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

public ObjectNode getValue(SubjectNode s,
                           String p)
                    throws URISyntaxException
Description copied from interface: GraphExt
Gets a single value for a given property on a subject.

Specified by:
getValue in interface GraphExt
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

public ObjectNode getValue(String s,
                           PredicateNode p)
                    throws URISyntaxException
Description copied from interface: GraphExt
Gets a single value for a given property on a subject.

Specified by:
getValue in interface GraphExt
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

public ObjectNode getValue(URI s,
                           String p)
                    throws URISyntaxException
Description copied from interface: GraphExt
Gets a single value for a given property on a subject.

Specified by:
getValue in interface GraphExt
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

public ObjectNode getValue(String s,
                           URI p)
                    throws URISyntaxException
Description copied from interface: GraphExt
Gets a single value for a given property on a subject.

Specified by:
getValue in interface GraphExt
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

getValue

public ObjectNode getValue(String s,
                           String p)
                    throws URISyntaxException
Description copied from interface: GraphExt
Gets a single value for a given property on a subject.

Specified by:
getValue in interface GraphExt
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

getRdfList

public List<ObjectNode> getRdfList(SubjectNode s,
                                   URI p)
Description copied from interface: GraphExt
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.

Specified by:
getRdfList in interface GraphExt
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

public List<ObjectNode> getRdfList(URI s,
                                   PredicateNode p)
Description copied from interface: GraphExt
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.

Specified by:
getRdfList in interface GraphExt
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

public List<ObjectNode> getRdfList(URI s,
                                   URI p)
Description copied from interface: GraphExt
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.

Specified by:
getRdfList in interface GraphExt
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

public List<ObjectNode> getRdfList(SubjectNode s,
                                   String p)
                            throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
getRdfList in interface GraphExt
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

public List<ObjectNode> getRdfList(String s,
                                   PredicateNode p)
                            throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
getRdfList in interface GraphExt
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

public List<ObjectNode> getRdfList(URI s,
                                   String p)
                            throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
getRdfList in interface GraphExt
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

public List<ObjectNode> getRdfList(String s,
                                   URI p)
                            throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
getRdfList in interface GraphExt
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

public List<ObjectNode> getRdfList(String s,
                                   String p)
                            throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
getRdfList in interface GraphExt
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

public List<SubjectNode> getSubjects(PredicateNode s,
                                     URI p)

getSubjects

public List<SubjectNode> getSubjects(PredicateNode property,
                                     String value)
Description copied from interface: GraphExt
Gets all the subjects that share a given property/value.

Specified by:
getSubjects in interface GraphExt
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

public List<SubjectNode> getSubjects(URI s,
                                     ObjectNode p)
Description copied from interface: GraphExt
Gets all the subjects that share a given property/value.

Specified by:
getSubjects in interface GraphExt
Parameters:
s - The property being looked for, as a URI.
p - The value being looked for.
Returns:
The subjects that have the value for the property.

getSubjects

public List<SubjectNode> getSubjects(URI s,
                                     URI p)
Description copied from interface: GraphExt
Gets all the subjects that share a given property/value.

Specified by:
getSubjects in interface GraphExt
Parameters:
s - The property being looked for, as a URI.
p - The value being looked for, as a URI.
Returns:
The subjects that have the value for the property.

getSubjects

public List<SubjectNode> getSubjects(URI s,
                                     String p)
Description copied from interface: GraphExt
Gets all the subjects that share a given property/value.

Specified by:
getSubjects in interface GraphExt
Parameters:
s - The property being looked for, as a URI.
p - The literal value being looked for.
Returns:
The subjects that have the value for the property.

getSubjects

public List<SubjectNode> getSubjects(String s,
                                     ObjectNode p)
                              throws URISyntaxException
Description copied from interface: GraphExt
Gets all the subjects that share a given property/value.

Specified by:
getSubjects in interface GraphExt
Parameters:
s - The property being looked for, as a string.
p - The value being looked for.
Returns:
The subjects that have the value for the property.
Throws:
URISyntaxException

getSubjects

public List<SubjectNode> getSubjects(String s,
                                     URI p)
                              throws URISyntaxException
Description copied from interface: GraphExt
Gets all the subjects that share a given property/value.

Specified by:
getSubjects in interface GraphExt
Parameters:
s - The property being looked for, as a string.
p - The value being looked for, as a URI.
Returns:
The subjects that have the value for the property.
Throws:
URISyntaxException

getSubjects

public List<SubjectNode> getSubjects(String s,
                                     String p)
                              throws URISyntaxException
Description copied from interface: GraphExt
Gets all the subjects that share a given property/value.

Specified by:
getSubjects in interface GraphExt
Parameters:
s - The property being looked for, as a string.
p - The literal value being looked for.
Returns:
The subjects that have the value for the property.
Throws:
URISyntaxException

doesResourceExist

public boolean doesResourceExist(URI r)
Description copied from interface: GraphExt
Tests if a resource exists anywhere in the graph, where the resource is a Uri reference.

Specified by:
doesResourceExist in interface GraphExt
Parameters:
r - The resource to test.
Returns:
true only if the resource is used somewhere in the graph.

doesResourceExist

public boolean doesResourceExist(String r)
Description copied from interface: GraphExt
Tests if a resource exists anywhere in the graph, where the resource is string representing a literal.

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

matchX

public Iterator<Triple> matchX(URI s,
                               PredicateNode p,
                               ObjectNode o)
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Iterator<Triple> matchX(SubjectNode s,
                               URI p,
                               ObjectNode o)
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Iterator<Triple> matchX(SubjectNode s,
                               PredicateNode p,
                               URI o)
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Iterator<Triple> matchX(URI s,
                               URI p,
                               ObjectNode o)
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Iterator<Triple> matchX(URI s,
                               PredicateNode p,
                               URI o)
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Iterator<Triple> matchX(SubjectNode s,
                               URI p,
                               URI o)
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Iterator<Triple> matchX(URI s,
                               URI p,
                               URI o)
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Iterator<Triple> matchX(String s,
                               PredicateNode p,
                               ObjectNode o)
                        throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Iterator<Triple> matchX(SubjectNode s,
                               String p,
                               ObjectNode o)
                        throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Iterator<Triple> matchX(SubjectNode s,
                               PredicateNode p,
                               String o)
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Iterator<Triple> matchX(String s,
                               String p,
                               ObjectNode o)
                        throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Iterator<Triple> matchX(String s,
                               PredicateNode p,
                               String o)
                        throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Iterator<Triple> matchX(SubjectNode s,
                               String p,
                               String o)
                        throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Iterator<Triple> matchX(String s,
                               String p,
                               String o)
                        throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Iterator<Triple> matchX(String s,
                               URI p,
                               ObjectNode o)
                        throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Iterator<Triple> matchX(String s,
                               PredicateNode p,
                               URI o)
                        throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Iterator<Triple> matchX(String s,
                               URI p,
                               URI o)
                        throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Iterator<Triple> matchX(URI s,
                               String p,
                               ObjectNode o)
                        throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Iterator<Triple> matchX(SubjectNode s,
                               String p,
                               URI o)
                        throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Iterator<Triple> matchX(URI s,
                               String p,
                               URI o)
                        throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Iterator<Triple> matchX(URI s,
                               PredicateNode p,
                               String o)
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Iterator<Triple> matchX(SubjectNode s,
                               URI p,
                               String o)
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Iterator<Triple> matchX(URI s,
                               URI p,
                               String o)
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Iterator<Triple> matchX(String s,
                               String p,
                               URI o)
                        throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Iterator<Triple> matchX(String s,
                               URI p,
                               String o)
                        throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Iterator<Triple> matchX(URI s,
                               String p,
                               String o)
                        throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchX in interface GraphExt
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

public Graph matchSubgraphX(URI s,
                            PredicateNode p,
                            ObjectNode o)
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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

public Graph matchSubgraphX(SubjectNode s,
                            URI p,
                            ObjectNode o)
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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

public Graph matchSubgraphX(SubjectNode s,
                            PredicateNode p,
                            URI o)
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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

public Graph matchSubgraphX(URI s,
                            URI p,
                            ObjectNode o)
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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

public Graph matchSubgraphX(URI s,
                            PredicateNode p,
                            URI o)
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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

public Graph matchSubgraphX(SubjectNode s,
                            URI p,
                            URI o)
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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

public Graph matchSubgraphX(URI s,
                            URI p,
                            URI o)
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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

public Graph matchSubgraphX(String s,
                            PredicateNode p,
                            ObjectNode o)
                     throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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

public Graph matchSubgraphX(SubjectNode s,
                            String p,
                            ObjectNode o)
                     throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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

public Graph matchSubgraphX(SubjectNode s,
                            PredicateNode p,
                            String o)
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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

public Graph matchSubgraphX(String s,
                            String p,
                            ObjectNode o)
                     throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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

public Graph matchSubgraphX(String s,
                            PredicateNode p,
                            String o)
                     throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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

public Graph matchSubgraphX(SubjectNode s,
                            String p,
                            String o)
                     throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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

public Graph matchSubgraphX(String s,
                            String p,
                            String o)
                     throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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

public Graph matchSubgraphX(String s,
                            URI p,
                            ObjectNode o)
                     throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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

public Graph matchSubgraphX(String s,
                            PredicateNode p,
                            URI o)
                     throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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

public Graph matchSubgraphX(String s,
                            URI p,
                            URI o)
                     throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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

public Graph matchSubgraphX(URI s,
                            String p,
                            ObjectNode o)
                     throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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

public Graph matchSubgraphX(SubjectNode s,
                            String p,
                            URI o)
                     throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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

public Graph matchSubgraphX(URI s,
                            String p,
                            URI o)
                     throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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

public Graph matchSubgraphX(URI s,
                            PredicateNode p,
                            String o)
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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

public Graph matchSubgraphX(SubjectNode s,
                            URI p,
                            String o)
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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

public Graph matchSubgraphX(URI s,
                            URI p,
                            String o)
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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

public Graph matchSubgraphX(String s,
                            String p,
                            URI o)
                     throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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

public Graph matchSubgraphX(String s,
                            URI p,
                            String o)
                     throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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

public Graph matchSubgraphX(URI s,
                            String p,
                            String o)
                     throws URISyntaxException
Description copied from interface: GraphExt
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.

Specified by:
matchSubgraphX in interface GraphExt
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.