public void Load ( System.Uri url )
Loads the parser with RDF/XML from a URL. This method will merge the new RDF with the existing graph.
Parameters:
url: The source URL of the RDF.
public void Load ( string rdf , System.Uri url )
Loads the parser with RDF/XML or triples XML. This method will merge the new RDF with the existing graph.
Parameters:
rdf: The RDF/XML or triples XML.
url: The source URL of the RDF.
public void Load ( string rdf )
Loads the parser with RDF/XML or triples XML. This method will merge the new RDF with the existing graph.
Parameters:
rdf: The RDF/XML or triples XML.
public void Clear ()
Clears the existing RDF graph loaded into the parser.
public VicSoft.Rdf.Statements GetStatements ( string subject , string predicate , string obj )
Gets the statements for a given subject, predicate and object. Null may be passed as a wildcard to subject, predicate and obj params. Pass null to all params to return all statements.
Parameters:
subject: The subject.
predicate: The predicate.
obj: The object.
Returns:
A Statements object.
public VicSoft.Rdf.Subjects GetSubjects ( string predicate , string obj )
Gets the subjects for a given predicate and object. Pass null to predicate param to query on object only. Pass null to obj param to query on predicate only. Pass null to both params to return all subjects.
Parameters:
predicate: The predicate.
obj: The object.
Returns:
A Subjects object.
public VicSoft.Rdf.Objects GetObjects ( string subject , string predicate )
Gets the objects for a given subject and predicate. Pass null to predicate param to query on subject only. Pass null to subject param to query on predicate only. Pass null to both params to return all objects.
Parameters:
subject: The subject.
predicate: The predicate.
Returns:
An Objects object.
public VicSoft.Rdf.Predicates GetPredicates ( string subject , string obj )
Gets the predicates for a given subject and object. Pass null to obj param to query on subject only. Pass null to subject param to query on object only. Pass null to both params to return all predicates.
Parameters:
subject: The subject.
obj: The object.
Returns:
A Predicates object.
public string GetSubjectValue ( string predicate , string obj )
Returns a subject value for a given predicate and object. Returns the value of the first subject found.
Parameters:
predicate: The predicate.
obj: The object.
Returns:
The subject value.
public string GetObjectValue ( string subject , string predicate )
Returns an object value for a given subject and predicate. Returns the value of the first object found.
Parameters:
subject: The subject.
predicate: The predicate.
Returns:
The object value.
public System.Boolean StatementExists ( string subject , string predicate , string obj )
Checks whether a statement exists. No parameter may be null for this method.
Parameters:
subject: The subject.
predicate: The predicate.
obj: The object.
Returns:
True or false.