Class RDFa11Parser

    • Constructor Detail

      • RDFa11Parser

        public RDFa11Parser()
        Deprecated.
    • Method Detail

      • extractPrefixSections

        protected static String[] extractPrefixSections​(String prefixesDeclaration)
        Deprecated.
        Given a prefix declaration returns a list of prefixID:prefixURL strings normalizing blanks where present.
        Parameters:
        prefixesDeclaration - input prefix
        Returns:
        list of extracted prefixes.
      • isAbsoluteIRI

        protected static boolean isAbsoluteIRI​(String iri)
        Deprecated.
      • isCURIE

        protected static boolean isCURIE​(String curie)
        Deprecated.
      • isCURIEBNode

        protected static boolean isCURIEBNode​(String curie)
        Deprecated.
      • isRelativeNode

        protected static boolean isRelativeNode​(Node node)
        Deprecated.
      • getAsPlainLiteral

        protected static org.eclipse.rdf4j.model.Literal getAsPlainLiteral​(Node node,
                                                                           String currentLanguage)
        Deprecated.
      • isXMLNSDeclared

        protected static boolean isXMLNSDeclared​(Document document)
        Deprecated.
      • reset

        public void reset()
        Deprecated.
        Resets the parser to the original state.
      • updateVocabulary

        protected void updateVocabulary​(Node currentNode)
        Deprecated.
        Updates the vocabulary context with possible @vocab declarations.
        Parameters:
        currentNode - the current node.
      • updateIRIMapping

        protected void updateIRIMapping​(Node node)
        Deprecated.
        Updates the IRI mapping with the XMLNS attributes declared in the current node.
        Parameters:
        node - input node.
      • getMapping

        protected org.eclipse.rdf4j.model.IRI getMapping​(String prefix)
        Deprecated.
        Returns a IRI mapping for a given prefix.
        Parameters:
        prefix - input prefix.
        Returns:
        IRI mapping.
      • resolveCIRIeOrIRIList

        protected org.eclipse.rdf4j.model.IRI[] resolveCIRIeOrIRIList​(Node n,
                                                                      String curieOrIRIList,
                                                                      boolean termAllowed)
                                                               throws URISyntaxException
        Deprecated.
        Resolves a whitelist separated list of CURIE or URI.
        Parameters:
        n - current node.
        curieOrIRIList - list of CURIE/URI.
        termAllowed - determine whether the term should be whitelisted.
        Returns:
        list of resolved URIs.
        Throws:
        URISyntaxException - if there is an error processing CURIE or URL
      • resolveIRI

        protected org.eclipse.rdf4j.model.IRI resolveIRI​(String iriStr)
        Deprecated.
        Resolves a IRI string as IRI.
        Parameters:
        iriStr - (partial) IRI string to be resolved.
        Returns:
        the resolved IRI.
      • resolveCURIEOrIRI

        protected org.eclipse.rdf4j.model.Resource resolveCURIEOrIRI​(String curieOrIRI,
                                                                     boolean termAllowed)
        Deprecated.
        Resolves a CURIE or IRI string.
        Parameters:
        curieOrIRI - individual of CURIE/URI to resolve
        termAllowed - if true the resolution can be a term.
        Returns:
        the resolved resource.