Example #1
0
 /// <summary>
 /// Gets the subgraph containing triples with the specified literal as object
 /// </summary>
 public RDFGraph SelectTriplesByLiteral(RDFLiteral objectLiteral)
 {
     return(new RDFGraph(RDFModelUtilities.SelectTriples(this, null, null, null, objectLiteral)));
 }
Example #2
0
 /// <summary>
 /// Gets the subgraph containing triples with the specified resource as predicate
 /// </summary>
 public RDFGraph SelectTriplesByPredicate(RDFResource predicateResource)
 {
     return(new RDFGraph(RDFModelUtilities.SelectTriples(this, null, predicateResource, null, null)));
 }
Example #3
0
 /// <summary>
 /// Gets the subgraph containing triples with the specified resource as object
 /// </summary>
 public RDFGraph SelectTriplesByObject(RDFResource objectResource)
 {
     return(new RDFGraph(RDFModelUtilities.SelectTriples(this, null, null, objectResource, null)));
 }
Example #4
0
 /// <summary>
 /// Gets the subgraph containing triples with the specified resource as subject
 /// </summary>
 public RDFGraph SelectTriplesBySubject(RDFResource subjectResource)
 => new RDFGraph(RDFModelUtilities.SelectTriples(this, subjectResource, null, null, null));