Gloze may be be supplied with user-defined namespace/schema-location hints (from the command line or through the API), or it looks for xsi:schemaLocation or xsi:noNamespaceSchemaLocation on the document element.
The following simple XML may be lifted into RDF either by supplying the schema location on the command line (eg. "schemaLocation.xml http://example.org/ mySchema.xsd"), or as shown in this case, using an explicit xsi:schemaLocation. Note that the xsi namespace must be declared.
<?xml version="1.0" encoding="UTF-8"?> <foobar xmlns="http://example.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://example.org/ mySchema.xsd" />
When dropping a document into XML, a schema location can be added by supplying the full (base) path of the schema using the schemaLocation parameter (e.g. "-Dgloze.schemaLocation=file:/C:/myExamples/mySchema.xsd" ). The schema used in the mapping are relativized against this base and added to the xsi:schemaLocation or xsi:noNamespaceSchemaLocation attribute on the document element.