Re: Progress toward making RDF easier?

On 21/02/2020 11:05, Eric Prud'hommeaux wrote:

This XSLT target will be considerably easier if you start with a nested RDF/XML than if you start with flattened TriX (or flattened RDF/XML for that matter).

If you want convenience, you want nesting; if you want completeness at the cost of more complex XSLT, you want a flat structure.

Agreed: my XML replicates the structural aspect of RDF/XML:

<?xml version="1.0" encoding="UTF-8"?>
<graph xmlns:event="http://purl.org/NET/c4dm/event.owl#"<http://purl.org/NET/c4dm/event.owl#> xmlns:units="http://dbpedia.org/units/"<http://dbpedia.org/units/> xmlns:foaf="http://xmlns.com/foaf/0.1/"<http://xmlns.com/foaf/0.1/> xmlns:geonames="http://www.geonames.org/ontology#"<http://www.geonames.org/ontology#>
...
    <prefix abbr="rdf" IRI="http://www.w3.org/1999/02/22-rdf-syntax-ns#"<http://www.w3.org/1999/02/22-rdf-syntax-ns#>/>
    <prefix abbr="rdfs" IRI="http://www.w3.org/2000/01/rdf-schema#"<http://www.w3.org/2000/01/rdf-schema#>/>
    <prefix abbr="event" IRI="http://purl.org/NET/c4dm/event.owl#"<http://purl.org/NET/c4dm/event.owl#>/>
...

    <node IRI="http://collections.wordsworth.org.uk/Object/WTcoll/id/1990.19.85.4"<http://collections.wordsworth.org.uk/Object/WTcoll/id/1990.19.85.4>>
        <arc IRI="rdf:type">
            <node IRI="http://www.cidoc-crm.org/cidoc-crm/E18_Physical_Thing"<http://www.cidoc-crm.org/cidoc-crm/E18_Physical_Thing>/>
        </arc>
        <arc IRI="rdfs:label">
            <literal>1990.19.85.4</literal>
        </arc>
        <arc IRI="dcterms:description">
            <literal>Wordsworth's memorial. - Undated. - b/w postcard. - 88 x 138mm.</literal>
        </arc>
        <arc IRI="dcterms:title">
            <literal>Wordsworth's memorial</literal>
        </arc>
        <arc IRI="crm:P108i_was_produced_by">
            <node IRI="http://collections.wordsworth.org.uk/Object/WTcoll/id/1990.19.85.4/Production/1"<http://collections.wordsworth.org.uk/Object/WTcoll/id/1990.19.85.4/Production/1>/>
        </arc>
    </node>
so the XSLT transforms are no more complex than those starting from RDF/XML.

Richard

--

Richard Light

Received on Friday, 21 February 2020 16:22:24 UTC