Class RdfQuadAdapter

  • All Implemented Interfaces:
    RdfTripleConsumer, com.apicatalog.rdf.api.RdfQuadConsumer

    @Deprecated
    public abstract class RdfQuadAdapter
    extends java.lang.Object
    implements com.apicatalog.rdf.api.RdfQuadConsumer, RdfTripleConsumer
    Deprecated.
    since 1.7.0 - use an alternative RDF primitives library.
    This class is deprecated as of version 1.7.0.

    Please use Titanium RDF Primitives or any other third-party library to materialize RDF primitives.

    See Also:
    Titanium RDF Primitives
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      RdfQuadAdapter defaultGraph()
      Deprecated.
      Sets the default graph as the active scope.
      protected RdfResource getResource​(java.lang.String name)
      Deprecated.
       
      RdfQuadAdapter namedGraph​(java.lang.String graph)
      Deprecated.
      Sets a named graph as the active scope.
      protected abstract void quad​(RdfResource subject, RdfResource predicate, RdfValue value, RdfResource graph)
      Deprecated.
       
      com.apicatalog.rdf.api.RdfQuadConsumer quad​(java.lang.String subject, java.lang.String predicate, java.lang.String object, java.lang.String datatype, java.lang.String language, java.lang.String direction, java.lang.String graph)
      Deprecated.
       
      RdfQuadAdapter triple​(java.lang.String subject, java.lang.String predicate, java.lang.String object)
      Deprecated.
      Accepts an RDF triple where the object is an IRI or a blank node.
      RdfQuadAdapter triple​(java.lang.String subject, java.lang.String predicate, java.lang.String literal, java.lang.String datatype)
      Deprecated.
      Accepts an RDF triple where the object is a literal with a datatype.
      RdfQuadAdapter triple​(java.lang.String subject, java.lang.String predicate, java.lang.String literal, java.lang.String language, java.lang.String direction)
      Deprecated.
      Accepts an RDF triple where the object is a localized string value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • resources

        protected final java.util.Map<java.lang.String,​RdfResource> resources
        Deprecated.
      • graphName

        protected RdfResource graphName
        Deprecated.
    • Constructor Detail

      • RdfQuadAdapter

        public RdfQuadAdapter()
        Deprecated.
      • RdfQuadAdapter

        public RdfQuadAdapter​(java.util.Map<java.lang.String,​RdfResource> resources)
        Deprecated.
    • Method Detail

      • namedGraph

        public RdfQuadAdapter namedGraph​(java.lang.String graph)
        Deprecated.
        Description copied from interface: RdfTripleConsumer
        Sets a named graph as the active scope. Ensures that subsequent triples are associated with the specified graph.
        Specified by:
        namedGraph in interface RdfTripleConsumer
        Parameters:
        graph - The name of the graph (IRI or blank node identifier prefixed with "_:"); never null.
        Returns:
        An instance enabling fluent programming; never null.
      • defaultGraph

        public RdfQuadAdapter defaultGraph()
        Deprecated.
        Description copied from interface: RdfTripleConsumer
        Sets the default graph as the active scope. This method is invoked when triples belong to the unnamed default graph.
        Specified by:
        defaultGraph in interface RdfTripleConsumer
        Returns:
        An instance enabling fluent programming; never null.
      • triple

        public RdfQuadAdapter triple​(java.lang.String subject,
                                     java.lang.String predicate,
                                     java.lang.String literal,
                                     java.lang.String language,
                                     java.lang.String direction)
        Deprecated.
        Description copied from interface: RdfTripleConsumer
        Accepts an RDF triple where the object is a localized string value. Optimized for efficient handling of language-tagged literals. The triple is processed within the currently active graph scope.
        Specified by:
        triple in interface RdfTripleConsumer
        Parameters:
        subject - The subject of the triple (IRI or blank node identifier prefixed with "_:"); never null.
        predicate - The predicate of the triple (IRI); never null.
        literal - The literal value of the object; never null.
        language - The language tag of the literal; never null.
        direction - The text direction of the literal (optional, may be null).
        Returns:
        An instance enabling fluent programming; never null.
      • triple

        public RdfQuadAdapter triple​(java.lang.String subject,
                                     java.lang.String predicate,
                                     java.lang.String literal,
                                     java.lang.String datatype)
        Deprecated.
        Description copied from interface: RdfTripleConsumer
        Accepts an RDF triple where the object is a literal with a datatype. Optimized for efficient handling of typed literals. The triple is processed within the currently active graph scope.
        Specified by:
        triple in interface RdfTripleConsumer
        Parameters:
        subject - The subject of the triple (IRI or blank node identifier prefixed with "_:"); never null.
        predicate - The predicate of the triple (IRI); never null.
        literal - The literal value of the object; never null.
        datatype - The datatype IRI of the literal; never null.
        Returns:
        An instance enabling fluent programming; never null.
      • triple

        public RdfQuadAdapter triple​(java.lang.String subject,
                                     java.lang.String predicate,
                                     java.lang.String object)
        Deprecated.
        Description copied from interface: RdfTripleConsumer
        Accepts an RDF triple where the object is an IRI or a blank node. The triple is processed within the currently active graph scope.
        Specified by:
        triple in interface RdfTripleConsumer
        Parameters:
        subject - The subject of the triple (IRI or blank node identifier prefixed with "_:"); never null.
        predicate - The predicate of the triple (IRI); never null.
        object - The object of the triple (IRI or blank node identifier prefixed with "_:"); never null.
        Returns:
        An instance enabling fluent programming; never null.
      • quad

        public com.apicatalog.rdf.api.RdfQuadConsumer quad​(java.lang.String subject,
                                                           java.lang.String predicate,
                                                           java.lang.String object,
                                                           java.lang.String datatype,
                                                           java.lang.String language,
                                                           java.lang.String direction,
                                                           java.lang.String graph)
                                                    throws com.apicatalog.rdf.api.RdfConsumerException
        Deprecated.
        Specified by:
        quad in interface com.apicatalog.rdf.api.RdfQuadConsumer
        Throws:
        com.apicatalog.rdf.api.RdfConsumerException
      • getResource

        protected final RdfResource getResource​(java.lang.String name)
        Deprecated.