@faubulous/mentor-rdf-parsers
    Preparing search index...

    Interface QuadContext

    An extended RDF/JS Quad that includes source tokens for each component. Optional comment metadata is included for readers that support associating comments with statements.

    interface QuadContext {
        equals(other: Term): boolean;
        graph: Quad_Graph;
        graphToken?: IToken;
        leadingComments?: IToken[];
        object: Quad_Object;
        objectToken: IToken;
        predicate: Quad_Predicate;
        predicateToken: IToken;
        subject: Quad_Subject;
        subjectToken: IToken;
        termType: "Quad";
        trailingComment?: IToken;
        value: "";
    }

    Hierarchy

    • Quad
      • QuadContext
    Index

    Properties

    graph: Quad_Graph

    The named graph.

    Quad_Graph

    graphToken?: IToken

    The token that defines the graph position in the source (for TriG/N-Quads). Undefined for triples in the default graph.

    leadingComments?: IToken[]

    Comment tokens that appear before this statement. For statements sharing a subject, only the first statement gets leading comments.

    object: Quad_Object

    The object.

    Quad_Object

    objectToken: IToken

    The token that defines the object position in the source.

    predicate: Quad_Predicate

    The predicate.

    Quad_Predicate

    predicateToken: IToken

    The token that defines the predicate position in the source.

    subject: Quad_Subject

    The subject.

    Quad_Subject

    subjectToken: IToken

    The token that defines the subject position in the source.

    termType: "Quad"

    Contains the constant "Quad".

    trailingComment?: IToken

    A comment token on the same line as this statement's last token. For statements sharing a subject, only the last statement gets the trailing comment.

    value: ""

    Contains an empty string as constant value.

    Methods

    • Parameters

      • other: Term

        The term to compare with.

      Returns boolean

      True if and only if the argument is a) of the same type b) has all components equal.