Class SubjectMappingUtil

    • Method Detail

      • mapSubject

        public static org.apache.jena.graph.Triple mapSubject​(org.apache.jena.graph.Triple t,
                                                              String resourceUri,
                                                              String destinationUri)
        Maps the subject of t from resourceUri to destinationUri to produce a new Triple. If the triple does not have the subject resourceUri, then the triple is unchanged.
        Parameters:
        t - triple to be remapped.
        resourceUri - resource subject uri to be remapped.
        destinationUri - subject uri for the resultant triple.
        Returns:
        triple with subject remapped to destinationUri or the original subject.
      • mapSubject

        public static org.apache.jena.graph.Triple mapSubject​(org.apache.jena.graph.Triple t,
                                                              String resourceUri,
                                                              org.apache.jena.graph.Node destinationNode)
        Maps the subject of t from resourceUri to destinationNode to produce a new Triple. If the triple does not have the subject resourceUri, then the triple is unchanged.
        Parameters:
        t - triple to be remapped.
        resourceUri - resource subject uri to be remapped.
        destinationNode - subject node for the resultant triple.
        Returns:
        triple with subject remapped to destinationNode or the original subject.