Class RDFParser

Constructors

Properties

base: undefined | string
bnodes: {}

Type declaration

    reify: boolean
    why: any
    nodeType: {
        ATTRIBUTE: number;
        CDATA_SECTION: number;
        COMMENT: number;
        DOCUMENT: number;
        DOCUMENT_FRAGMENT: number;
        DOCUMENT_TYPE: number;
        ELEMENT: number;
        ENTITY: number;
        ENTITY_REFERENCE: number;
        NOTATION: number;
        PROCESSING_INSTRUCTION: number;
        TEXT: number;
    } = ...

    DOM Level 2 node type magic numbers

    Type declaration

    • ATTRIBUTE: number
    • CDATA_SECTION: number
    • COMMENT: number
    • DOCUMENT: number
    • DOCUMENT_FRAGMENT: number
    • DOCUMENT_TYPE: number
    • ELEMENT: number
    • ENTITY: number
    • ENTITY_REFERENCE: number
    • NOTATION: number
    • PROCESSING_INSTRUCTION: number
    • TEXT: number

    Final

    Member

    RDFParser

    ns: {
        RDF: string;
        RDFS: string;
    } = ...

    Standard namespaces that we know how to handle

    Type declaration

    • RDF: string
    • RDFS: string

    Final

    Member

    RDFParser

    Methods

    • Parameters

      • node: any
      • uri: any
      • name: any

      Returns any

    • Build our initial scope frame and parse the DOM into triples

      Parameters

      • document: HTMLDocument

        The DOM to parse

      • base: string

        The base URL to use

      • why: any

        The context to which this resource belongs

      Returns boolean