Class RDFStar


  • public class RDFStar
    extends java.lang.Object
    Library 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 Detail

      • RDFStar

        public RDFStar()
    • Method Detail

      • encodeRDFStar

        public static void encodeRDFStar​(Graph graph,
                                         StreamRDF dest)
        Copy to a StreamRDF, encoding RDF-star Triple terms by replacing them with RDF Reification.
      • decodeRDFStar

        public static void decodeRDFStar​(Graph graph,
                                         StreamRDF dest)
        Copy the argument graph to a StreamRDF, replacing reifications with for triple terms. Caution: this operation uses space proportional to the number of triple terms present.
      • 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 a Node_Triple This must be the same node (same by value) whenever called with a Node_Triple with the same s/p/o.