All predicatesShow sourcerdf_parser.pl

Source rdf_name_space(?URL) is nondet[multifile]
True if URL must be handled as rdf: Determines special handling of rdf:about, rdf:resource, etc.
Source xml_to_plrdf(+RDFElementOrObject, -RDFTerm, +State)
Translate an XML (using namespaces) term into an Prolog term representing the RDF data. This term can then be fed into rdf_triples/[2,3] to create a list of RDF triples. State is an instance of an rdf_state record.
Source element_to_plrdf(+DOM, -RDFTerm, +State)
Rewrite a single XML element.
Source literal_value(+In, -Value, +Options)[private]
Create the literal value for rdf:parseType="Literal" attributes. The content is the Prolog XML DOM tree for the literal.
To be done
- Note that the specs demand a canonical textual representation of the XML data as a Unicode string. For now the user can achieve this using the convert_typed_literal hook.
Source mkliteral(+Atom, -Object, +Options)[private]
Translate attribute value Atom into an RDF object using the lang(Lang) option from Options.
Source typed_literal(+Type, +Content, -Literal, +Options)[private]
Handle a literal attribute with rdf:datatype=Type qualifier. NB: possibly it is faster to use a global variable for the conversion hook.
 an_rdf_object(-Object, +OptionsURI)[private]
Deals with an object, but there may be spaces around. I'm still not sure where to deal with these. Best is to ask the XML parser to get rid of them, So most likely this code will change if this happens.
Source modify_state(+Element0, +Options0, -Element, -Options) is semidet[private]
If Element0 contains xml:base = Base, strip it from the attributes list and update base_uri(_) in the Options

It Element0 contains xml:lang = Lang, strip it from the attributes list and update lang(_) in the Options

Remove all xmlns=_, xmlns:_=_ and xml:_=_. Only succeed if something changed.

Source remove_fragment(+URI, -WithoutFragment)[private]
When handling xml:base, we must delete the possible fragment.

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

Source make_rdf_state(Arg1, Arg2, Arg3)
Source rdf_modify_state(Arg1, Arg2, Arg3)