Package org.apache.jena.system
Class RDFStar
- java.lang.Object
-
- org.apache.jena.system.RDFStar
-
public class RDFStar extends java.lang.ObjectLibrary for RDF-star translation to and from reification form. There is one reification for each unique quoted triple term. This is especially important when decoding.
-
-
Constructor Summary
Constructors Constructor Description RDFStar()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GraphdecodeRDFStar(Graph graph)Returns a copy of the argument graph with any reifications for triple terms translated to triple terms.static voiddecodeRDFStar(Graph graph, StreamRDF dest)Copy the argument graph to aStreamRDF, replacing reifications with for triple terms.static GraphdecodeRDFStarInPlace(Graph graph)Replace reification encoding of RDF-star terms with RDF-star triples.static GraphencodeRDFStar(Graph graph)Returns a copy of the argument graph with any triple terms encoded as reification.static voidencodeRDFStar(Graph graph, StreamRDF dest)Copy to aStreamRDF, encoding RDF-star Triple terms by replacing them with RDF Reification.static GraphencodeRDFStarInPlace(Graph graph)Encode RDF-star Triple terms by replacing them with RDF Reification.static NodereificationSubject(Node_Triple nodeTriple)Calculate a reification subject node for aNode_TripleThis must be the same node (same by value) whenever called with aNode_Triplewith the same s/p/o.
-
-
-
Method Detail
-
encodeRDFStar
public static Graph encodeRDFStar(Graph graph)
Returns a copy of the argument graph with any triple terms encoded as reification.See
decodeRDFStar(Graph)for the reverse operation.See
encodeRDFStarInPlace(Graph)decodeRDFStarInPlace(Graph)for operations that alters the argument graph in-place.Returns a new graph with triples involving triple terms replaced with reification.
-
encodeRDFStar
public static void encodeRDFStar(Graph graph, StreamRDF dest)
Copy to aStreamRDF, encoding RDF-star Triple terms by replacing them with RDF Reification.
-
decodeRDFStar
public static Graph decodeRDFStar(Graph graph)
Returns a copy of the argument graph with any reifications for triple terms translated to triple terms.See
decodeRDFStar(Graph)for the reverse operation.See
encodeRDFStarInPlace(Graph)decodeRDFStarInPlace(Graph)for operations that alters the argument graph in-place.
-
decodeRDFStar
public static void decodeRDFStar(Graph graph, StreamRDF dest)
Copy the argument graph to aStreamRDF, replacing reifications with for triple terms. Caution: this operation uses space proportional to the number of triple terms present.
-
encodeRDFStarInPlace
public static Graph encodeRDFStarInPlace(Graph graph)
Encode RDF-star Triple terms by replacing them with RDF Reification.Changes the argument graph in-place.
-
decodeRDFStarInPlace
public static Graph decodeRDFStarInPlace(Graph graph)
Replace reification encoding of RDF-star terms with RDF-star triples.This function assuming any reification use in the graph is for RDF-star terms.
-
reificationSubject
public static Node reificationSubject(Node_Triple nodeTriple)
Calculate a reification subject node for aNode_TripleThis must be the same node (same by value) whenever called with aNode_Triplewith the same s/p/o.
-
-