<?xml version="1.0" encoding="UTF-8"?> <string xmlns="http://example.org/">foobar</string>
This is defined in its schema.
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://example.org/"> <xs:element name="string" type="xs:string" /> </xs:schema>
The N3 translation declares a namespace prefix 'xs_' that allows the full URI <http://www.w3.org/2001/XMLSchema#string> to be abbreviated to xs_:string. Note that the RDF mapping preserves namespaces declared in the XML (so they can be recovered in the reverse mapping), the namespace 'xs' defined as <http://www.w3.org/2001/XMLSchema> is already taken, so Gloze defines an extended version with a trailing '#' and adds the underscore to the name. The XML base is http://example.org/
# Base: http://example.org/elementString.xml @prefix ns1: <http://example.org/def/> . @prefix xs: <http://www.w3.org/2001/XMLSchema> . @prefix ns2: <http://example.org/> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix xs_: <http://www.w3.org/2001/XMLSchema#> . @prefix : <#> . <> ns2:string "foobar"^^xs_:string .