jneubert / skos-history

Ontology, processing practices and supporting code for change tracking of SKOS vocabularies
38 stars 9 forks source link

Reference named graphs #10

Closed jneubert closed 9 years ago

jneubert commented 9 years ago

For referencing named graphs in the context of of sh and dsv, a property sh:usingNamedGraph has been added. It is intended to link a dsv:VersionHistoryRecord or a sh:SchemeDeltaInsertions/Deletions to a sd:NamedGraph. A void:sparqlEndpoint property should link the dsv:VersionHistorySet to the endpoint where the named graphs are deployed. The default graph of the endpoint may expose a service description according to http://www.w3.org/TR/sparql11-service-description/.

jneubert commented 9 years ago

Service description graph:

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://zbw.eu/stw/version/sparql-service> a sd:Service ;
    sd:defaultDatasetDescription <http://zbw.eu/stw/version/sparql-service/ddd> ;
    sd:url <http://zbw.eu/beta/sparql/stwv/query> .

<http://zbw.eu/stw/version/8.04/delta/8.06/deletions/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.04/delta/8.06/deletions> .

<http://zbw.eu/stw/version/8.04/delta/8.06/insertions/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.04/delta/8.06/insertions> .

<http://zbw.eu/stw/version/8.04/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.04> .

<http://zbw.eu/stw/version/8.06/delta/8.08/deletions/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.06/delta/8.08/deletions> .

<http://zbw.eu/stw/version/8.06/delta/8.08/insertions/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.06/delta/8.08/insertions> .

<http://zbw.eu/stw/version/8.06/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.06> .

<http://zbw.eu/stw/version/8.08/delta/8.10/deletions/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.08/delta/8.10/deletions> .

<http://zbw.eu/stw/version/8.08/delta/8.10/insertions/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.08/delta/8.10/insertions> .

<http://zbw.eu/stw/version/8.08/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.08> .

<http://zbw.eu/stw/version/8.10/delta/8.12/deletions/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.10/delta/8.12/deletions> .

<http://zbw.eu/stw/version/8.10/delta/8.12/insertions/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.10/delta/8.12/insertions> .

<http://zbw.eu/stw/version/8.10/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.10> .

<http://zbw.eu/stw/version/8.12/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.12> .

<http://zbw.eu/stw/version/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version> .

<http://zbw.eu/stw/version/sparql-service/ddd> a sd:Dataset ;
    dcterms:title "STW Versions SPARQL Service" ;
    sd:defaultGraph [ a sd:Graph ;
            dcterms:title "STW Versions SPARQL Service Description" ] ;
    sd:namedGraph <http://zbw.eu/stw/version/8.04/delta/8.06/deletions/ng>,
        <http://zbw.eu/stw/version/8.04/delta/8.06/insertions/ng>,
        <http://zbw.eu/stw/version/8.04/ng>,
        <http://zbw.eu/stw/version/8.06/delta/8.08/deletions/ng>,
        <http://zbw.eu/stw/version/8.06/delta/8.08/insertions/ng>,
        <http://zbw.eu/stw/version/8.06/ng>,
        <http://zbw.eu/stw/version/8.08/delta/8.10/deletions/ng>,
        <http://zbw.eu/stw/version/8.08/delta/8.10/insertions/ng>,
        <http://zbw.eu/stw/version/8.08/ng>,
        <http://zbw.eu/stw/version/8.10/delta/8.12/deletions/ng>,
        <http://zbw.eu/stw/version/8.10/delta/8.12/insertions/ng>,
        <http://zbw.eu/stw/version/8.10/ng>,
        <http://zbw.eu/stw/version/8.12/ng>,
        <http://zbw.eu/stw/version/ng> .
jneubert commented 9 years ago

Version history graph:

@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix dsv: <http://purl.org/iso25964/DataSet/Versioning#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .
@prefix sh: <http://raw.github.com/jneubert/skos-history/master/skos-history.ttl/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix void: <http://rdfs.org/ns/void#> .
@prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://zbw.eu/stw/version/8.04/delta/8.06/deletions/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.04/delta/8.06/deletions> .

<http://zbw.eu/stw/version/8.04/delta/8.06/insertions/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.04/delta/8.06/insertions> .

<http://zbw.eu/stw/version/8.06/delta/8.08/deletions/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.06/delta/8.08/deletions> .

<http://zbw.eu/stw/version/8.06/delta/8.08/insertions/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.06/delta/8.08/insertions> .

<http://zbw.eu/stw/version/8.08/delta/8.10/deletions/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.08/delta/8.10/deletions> .

<http://zbw.eu/stw/version/8.08/delta/8.10/insertions/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.08/delta/8.10/insertions> .

<http://zbw.eu/stw/version/8.10/delta/8.12/deletions/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.10/delta/8.12/deletions> .

<http://zbw.eu/stw/version/8.10/delta/8.12/insertions/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.10/delta/8.12/insertions> .

<http://zbw.eu/stw/version/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version> .

<http://zbw.eu/stw/version/8.04/delta/8.06/deletions> a sh:SchemeDeltaDeletions ;
    dcterms:isPartOf <http://zbw.eu/stw/version/8.04/delta/8.06> ;
    sh:usingNamedGraph <http://zbw.eu/stw/version/8.04/delta/8.06/deletions/ng> .

<http://zbw.eu/stw/version/8.04/delta/8.06/insertions> a sh:SchemeDeltaInsertions ;
    dcterms:isPartOf <http://zbw.eu/stw/version/8.04/delta/8.06> ;
    sh:usingNamedGraph <http://zbw.eu/stw/version/8.04/delta/8.06/insertions/ng> .

<http://zbw.eu/stw/version/8.04/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.04> .

<http://zbw.eu/stw/version/8.06/delta/8.08/deletions> a sh:SchemeDeltaDeletions ;
    dcterms:isPartOf <http://zbw.eu/stw/version/8.06/delta/8.08> ;
    sh:usingNamedGraph <http://zbw.eu/stw/version/8.06/delta/8.08/deletions/ng> .

<http://zbw.eu/stw/version/8.06/delta/8.08/insertions> a sh:SchemeDeltaInsertions ;
    dcterms:isPartOf <http://zbw.eu/stw/version/8.06/delta/8.08> ;
    sh:usingNamedGraph <http://zbw.eu/stw/version/8.06/delta/8.08/insertions/ng> .

<http://zbw.eu/stw/version/8.06/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.06> .

<http://zbw.eu/stw/version/8.08/delta/8.10/deletions> a sh:SchemeDeltaDeletions ;
    dcterms:isPartOf <http://zbw.eu/stw/version/8.08/delta/8.10> ;
    sh:usingNamedGraph <http://zbw.eu/stw/version/8.08/delta/8.10/deletions/ng> .

<http://zbw.eu/stw/version/8.08/delta/8.10/insertions> a sh:SchemeDeltaInsertions ;
    dcterms:isPartOf <http://zbw.eu/stw/version/8.08/delta/8.10> ;
    sh:usingNamedGraph <http://zbw.eu/stw/version/8.08/delta/8.10/insertions/ng> .

<http://zbw.eu/stw/version/8.08/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.08> .

<http://zbw.eu/stw/version/8.10/delta/8.12/deletions> a sh:SchemeDeltaDeletions ;
    dcterms:isPartOf <http://zbw.eu/stw/version/8.10/delta/8.12> ;
    sh:usingNamedGraph <http://zbw.eu/stw/version/8.10/delta/8.12/deletions/ng> .

<http://zbw.eu/stw/version/8.10/delta/8.12/insertions> a sh:SchemeDeltaInsertions ;
    dcterms:isPartOf <http://zbw.eu/stw/version/8.10/delta/8.12> ;
    sh:usingNamedGraph <http://zbw.eu/stw/version/8.10/delta/8.12/insertions/ng> .

<http://zbw.eu/stw/version/8.10/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.10> .

<http://zbw.eu/stw/version/8.12/ng> a sd:NamedGraph ;
    sd:name <http://zbw.eu/stw/version/8.12> .

<http://zbw.eu/stw/versionrecord/8.04> a dsv:VersionHistoryRecord ;
    dc:date "2009-02-16"^^xsd:date ;
    dc:identifier "8.04" ;
    dsv:hasVersionHistorySet <http://zbw.eu/stw/version> ;
    dsv:isVersionRecordOf <http://zbw.eu/stw/version/8.04/download/stw.rdf.zip>,
        <http://zbw.eu/stw/version/8.04/download/stw.ttl.zip>,
        <http://zbw.eu/stw/version/8.04/ng> ;
    sh:hasDelta <http://zbw.eu/stw/version/8.04/delta/8.06> ;
    sh:usingNamedGraph <http://zbw.eu/stw/version/8.04/ng> .

<http://zbw.eu/stw/versionrecord/8.12> a dsv:VersionHistoryRecord ;
    dc:date "2013-10-30"^^xsd:date ;
    dc:identifier "8.12" ;
    dsv:hasVersionHistorySet <http://zbw.eu/stw/version> ;
    dsv:isVersionRecordOf <http://zbw.eu/stw/version/8.12/download/stw.rdf.zip>,
        <http://zbw.eu/stw/version/8.12/download/stw.ttl.zip>,
        <http://zbw.eu/stw/version/8.12/ng> ;
    sh:hasDelta <http://zbw.eu/stw/version/8.10/delta/8.12> ;
    sh:usingNamedGraph <http://zbw.eu/stw/version/8.12/ng> ;
    xhv:prev <http://zbw.eu/stw/versionrecord/8.10> .

<http://zbw.eu/stw/versionrecord/8.06> a dsv:VersionHistoryRecord ;
    dc:date "2010-04-22"^^xsd:date ;
    dc:identifier "8.06" ;
    dsv:hasVersionHistorySet <http://zbw.eu/stw/version> ;
    dsv:isVersionRecordOf <http://zbw.eu/stw/version/8.06/download/stw.rdf.zip>,
        <http://zbw.eu/stw/version/8.06/download/stw.ttl.zip>,
        <http://zbw.eu/stw/version/8.06/ng> ;
    sh:hasDelta <http://zbw.eu/stw/version/8.04/delta/8.06>,
        <http://zbw.eu/stw/version/8.06/delta/8.08> ;
    sh:usingNamedGraph <http://zbw.eu/stw/version/8.06/ng> ;
    xhv:prev <http://zbw.eu/stw/versionrecord/8.04> .

<http://zbw.eu/stw/versionrecord/8.08> a dsv:VersionHistoryRecord ;
    dc:date "2011-06-30"^^xsd:date ;
    dc:identifier "8.08" ;
    dsv:hasVersionHistorySet <http://zbw.eu/stw/version> ;
    dsv:isVersionRecordOf <http://zbw.eu/stw/version/8.08/download/stw.rdf.zip>,
        <http://zbw.eu/stw/version/8.08/download/stw.ttl.zip>,
        <http://zbw.eu/stw/version/8.08/ng> ;
    sh:hasDelta <http://zbw.eu/stw/version/8.06/delta/8.08>,
        <http://zbw.eu/stw/version/8.08/delta/8.10> ;
    sh:usingNamedGraph <http://zbw.eu/stw/version/8.08/ng> ;
    xhv:prev <http://zbw.eu/stw/versionrecord/8.06> .

<http://zbw.eu/stw/versionrecord/8.10> a dsv:VersionHistoryRecord ;
    dc:date "2012-03-21"^^xsd:date ;
    dc:identifier "8.10" ;
    dsv:hasVersionHistorySet <http://zbw.eu/stw/version> ;
    dsv:isVersionRecordOf <http://zbw.eu/stw/version/8.10/download/stw.rdf.zip>,
        <http://zbw.eu/stw/version/8.10/download/stw.ttl.zip>,
        <http://zbw.eu/stw/version/8.10/ng> ;
    sh:hasDelta <http://zbw.eu/stw/version/8.08/delta/8.10>,
        <http://zbw.eu/stw/version/8.10/delta/8.12> ;
    sh:usingNamedGraph <http://zbw.eu/stw/version/8.10/ng> ;
    xhv:prev <http://zbw.eu/stw/versionrecord/8.08> .

<http://zbw.eu/stw/version/8.04/delta/8.06> a sh:SchemeDelta ;
    dcterms:hasPart <http://zbw.eu/stw/version/8.04/delta/8.06/deletions>,
        <http://zbw.eu/stw/version/8.04/delta/8.06/insertions> ;
    sh:deltaFrom <http://zbw.eu/stw/versionrecord/8.04> ;
    sh:deltaTo <http://zbw.eu/stw/versionrecord/8.06> .

<http://zbw.eu/stw/version/8.06/delta/8.08> a sh:SchemeDelta ;
    dcterms:hasPart <http://zbw.eu/stw/version/8.06/delta/8.08/deletions>,
        <http://zbw.eu/stw/version/8.06/delta/8.08/insertions> ;
    sh:deltaFrom <http://zbw.eu/stw/versionrecord/8.06> ;
    sh:deltaTo <http://zbw.eu/stw/versionrecord/8.08> .

<http://zbw.eu/stw/version/8.08/delta/8.10> a sh:SchemeDelta ;
    dcterms:hasPart <http://zbw.eu/stw/version/8.08/delta/8.10/deletions>,
        <http://zbw.eu/stw/version/8.08/delta/8.10/insertions> ;
    sh:deltaFrom <http://zbw.eu/stw/versionrecord/8.08> ;
    sh:deltaTo <http://zbw.eu/stw/versionrecord/8.10> .

<http://zbw.eu/stw/version/8.10/delta/8.12> a sh:SchemeDelta ;
    dcterms:hasPart <http://zbw.eu/stw/version/8.10/delta/8.12/deletions>,
        <http://zbw.eu/stw/version/8.10/delta/8.12/insertions> ;
    sh:deltaFrom <http://zbw.eu/stw/versionrecord/8.10> ;
    sh:deltaTo <http://zbw.eu/stw/versionrecord/8.12> .

<http://zbw.eu/stw/version> a dsv:VersionHistorySet ;
    dsv:currentVersionRecord <http://zbw.eu/stw/versionrecord/8.12> ;
    sh:isVersionHistoryOf <http://zbw.eu/stw> ;
    sh:usingNamedGraph <http://zbw.eu/stw/version/ng> ;
    void:sparqlEndpoint <http://zbw.eu/beta/sparql/stwv/query> .