Re: Progress toward making RDF easier?

Richard Light <[email protected]>
Newsgroups gmane.org.w3c.semantic-web
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.