Skip to content

Commit

Permalink
Merge pull request #745 from w3c/prof-examples
Browse files Browse the repository at this point in the history
Prof examples - merging as per consensus
  • Loading branch information
rob-metalinkage committed Feb 25, 2019
2 parents d5799c4 + a25990f commit caf7d7d
Show file tree
Hide file tree
Showing 18 changed files with 1,448 additions and 794 deletions.
54 changes: 0 additions & 54 deletions profilesont/examples/README.md

This file was deleted.

640 changes: 640 additions & 0 deletions profilesont/examples/adms.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
151 changes: 39 additions & 112 deletions profilesont/examples/adms.ttl
Original file line number Diff line number Diff line change
@@ -1,130 +1,57 @@
# baseURI: http://example.org/profile/adms
# imports: http://purl.org/dc/elements/1.1/
# imports: https://w3c.github.io/dxwg/profiledesc

@prefix : <http://www.w3.org/ns/dx/prof/examples/adms.ttl#> .
@prefix prof: <http://www.w3.org/ns/dx/prof/> .
@prefix roles: <http://www.w3.org/ns/dx/prof/roles/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix padms: <http://example.org/adms#> .
@prefix prof: <https://w3c.github.io/dxwg/profilesont#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .


padms:ADMS
rdf:type prof:Profile ;
rdfs:label "ADMS" ;
prof:profileOf padms:DCAT2014 ;
prof:resource padms:ADMS-note ;
.

padms:ADMS-note
rdf:type prof:ResourceDescriptor ;
dct:conformsTo prof:W3Cnote ;
dct:format "text/html" ;
rdfs:label "ADMS specification document" ;
prof:artifact <https://www.w3.org/TR/vocab-adms/> ;
prof:resourceRole prof:Spec ;
.

padms:ADMS-rdf
rdf:type prof:ResourceDescriptor ;
dct:conformsTo <https://www.w3.org/TR/owl2-rdf-based-semantics/> ;
dct:conformsTo <https://www.w3.org/TR/rdf-schema/> ;
dct:format "text/turtle" ;
rdfs:label "ADMS RDF vocabulary" ;
prof:artifact <https://www.w3.org/ns/adms> ;
prof:resourceRole prof:Vocab ;
.

padms:DCAT2014
rdf:type dct:Standard ;
rdfs:label "DCAT 2014" ;
prof:resource padms:DCAT2014-rdf ;
prof:resource padms:DCAT2014-rec ;
.

padms:DCAT2014-rdf
rdf:type prof:ResourceDescriptor ;
dct:conformsTo <https://www.w3.org/TR/owl2-rdf-based-semantics/> ;
dct:conformsTo <https://www.w3.org/TR/rdf-schema/> ;
dct:format "text/turtle" ;
rdfs:label "DCAT 2014 RDF vocabulary" ;
prof:artifact <https://www.w3.org/ns/dcat.ttl> ;
prof:resourceRole prof:Vocab ;
.

padms:DCAT2014-rec
rdf:type prof:ResourceDescriptor ;
dct:conformsTo prof:W3Crec ;
dct:format "text/html" ;
rdfs:label "DCAT 2014 Recommendation document" ;
prof:artifact <https://www.w3.org/TR/2014/REC-vocab-dcat-20140116/> ;
prof:resourceRole prof:Spec ;
.

<http://example.org/profile/adms>
rdf:type owl:Ontology ;
dct:created "2018-09-18" ;
dct:creator <https://orcid.org/0000-0002-3884-3420> ;
rdfs:comment "A description of the ADMS profile of DCAT, formalised using the profdesc ontology" ;
rdfs:label "ADMS profile of DCAT" ;
owl:imports <http://purl.org/dc/elements/1.1/> ;
owl:imports <https://w3c.github.io/dxwg/profiledesc> ;
skos:scopeNote "Test of profdesc ontology" ;
.

prof:Guidance
rdf:type prof:ResourceRole ;
rdfs:comment "Document that provides guidance on the recommended use of the standard" ;
rdfs:label "Guidance document" ;
.

prof:ISOstandard
rdf:type dct:Standard ;
rdfs:label "ISO Standards Document" ;
.

prof:ISOtr
#
# A series of standards defined in this examples document
#
:W3Cnote
rdf:type dct:Standard ;
rdfs:label "ISO Technical Recommendation Document" ;
rdfs:label "W3C Working Group Note Document" ;
.

prof:OGCstandard
:W3Crec
rdf:type dct:Standard ;
rdfs:label "OGC Standards Document" ;
rdfs:label "W3C Recommendation Document" ;
.

prof:Spec
rdf:type prof:ResourceRole ;
rdfs:comment "Reference document which describes the standard" ;
rdfs:label "Specification document" ;
.

prof:Validation
rdf:type prof:ResourceRole ;
rdfs:comment "artifact that is used directly in validation, such as XSD, Schematron, SHACL, ShEx" ;
rdfs:label "Validation" ;
.

prof:Vocab
rdf:type prof:ResourceRole ;
rdfs:comment "Machine readable definition of a vocabulary or schema Typically expressed in RDF, XSD, UML DDL, Table Schema or similar."@en ;
rdfs:label "Vocabulary formalization" ;
#
# ADMS, described as a profile of DCAT (original)
#
:ADMS
a prof:Profile ;
rdfs:label "ADMS" ;
# this URI is for DCAT (original) as defined in the DCAT examples
prof:profileOf <http://www.w3.org/ns/dx/prof/examples/dcat.ttl#dcat2014> ;
prof:hasResource :ADMS-note ,
:ADMS-rdf ,
.

prof:W3Cnote
rdf:type dct:Standard ;
rdfs:label "W3C Working Group Note Document" ;
:ADMS-note
a prof:ResourceDescriptor ;
rdfs:label "ADMS specification document" ;
prof:hasRole roles:specification ;
dct:conformsTo prof:W3Cnote ;
dct:format <https://w3id.org/mediatypes/text/html> ;
prof:hasArtifact <https://www.w3.org/TR/vocab-adms/> ;
.

prof:W3Crec
rdf:type dct:Standard ;
rdfs:label "W3C Recommendation Document" ;
:ADMS-rdf
a prof:ResourceDescriptor ;
rdfs:label "ADMS RDF vocabulary" ;
prof:hasRole roles:vocabulary ;
dct:conformsTo <https://www.w3.org/TR/owl2-rdf-based-semantics/> ,
<https://www.w3.org/TR/rdf-schema/> ;
dct:format <https://w3id.org/mediatypes/text/turtle> ;
prof:hasArtifact <https://www.w3.org/ns/adms> ;
.

prof:W3Cucr
rdf:type dct:Standard ;
rdfs:label "W3C Use Cases and Requirements Document" ;
.
# additional information about DCAT (original) not present in the DCAT example
<http://www.w3.org/ns/dx/prof/examples/dcat.ttl#dcat-orig>
dct:conformsTo :W3Crec .
98 changes: 98 additions & 0 deletions profilesont/examples/dcat-ap.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
@prefix : <http://www.w3.org/ns/dx/prof/examples/dcat-ap.ttl#> .
@prefix prof: <http://www.w3.org/ns/dx/prof/> .
@prefix roles: <http://www.w3.org/ns/dx/prof/roles/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dct: <http://purl.org/dc/terms/> .

#
# DCAT-AP example 1: DCAT-AP profile of DCAT
#
<https://joinup.ec.europa.eu/release/dcat-ap-v11>
a prof:Profile ;
rdfs:label "DCAT-AP" ;
rdfs:comment "DCAT Application Profile for data portals in Europe" ;
dc:publisher "European Union" ;
prof:isProfileOf <http://www.w3.org/ns/dcat#> ;
prof:hasResource :dcat-ap-guidance-msw , # profile doc in Word (DOCX)
:dcat-ap-guidance-pdf , # profile doc in PDF
:dcat-ap-guidance-png , # profile image (PNG)
:dcat-ap-rdf , # profile vocabulary in RDF
:dcat-ap-constraints ; # SHACL constraints for the profile
.

:dcat-ap-guidance-msw
a prof:ResourceDescriptor;
rdfs:label "DCAT-AP Guidance Document (Word)" ;
prof:hasRole roles:guidance ;
dct:format <https://w3id.org/mediatypes/application/vnd.openxmlformats-officedocument.wordprocessingml.document> ;
prof:hasArtifact
<https://joinup.ec.europa.eu/rdf_entity/http_e_f_fdata_ceuropa_ceu_fw21_f6f27f059_bf785_b4d7d_bb602_b6448aab73bd5> ;
.

:dcat-ap-guidance-pdf
a prof:ResourceDescriptor;
rdfs:label "DCAT-AP Guidance Document (PDF)" ;
prof:hasRole roles:guidance ;
dct:format <https://w3id.org/mediatypes/application/pdf> ;
prof:hasArtifact
<https://joinup.ec.europa.eu/rdf_entity/http_e_f_fdata_ceuropa_ceu_fw21_f17e18570_b1d77_b4171_b9df5_bb53cb4f017d4> ;
.

:dcat-ap-guidance-png
a prof:ResourceDescriptor;
rdfs:label "DCAT-AP Image" ;
prof:hasRole roles:guidance ;
dct:format <https://w3id.org/mediatypes/image/png> ;
prof:hasArtifact
<https://joinup.ec.europa.eu/rdf_entity/http_e_f_fdata_ceuropa_ceu_fw21_f1131a208_b92e9_b4427_ba40c_b6c47746cd422> ;
.

:dcat-ap-rdf
a prof:ResourceDescriptor;
rdfs:label "DCAT-AP RDF" ;
prof:hasRole roles:vocabulary ;
dct:format <https://w3id.org/mediatypes/text/application/rdf+xml> ;
prof:hasArtifact
<https://joinup.ec.europa.eu/rdf_entity/http_e_f_fdata_ceuropa_ceu_fw21_f8e39a7a4_b1af9_b418f_baee0_b7f38347024b0>
.

:dcat-ap-constraints
a prof:ResourceDescriptor;
rdfs:label "DCAT-AP constraints" ;
prof:hasRole roles:fullConstraints ;
dct:conformsTo <http://www.w3.org/ns/shacl#>; # the namespace URI for SHACL
dct:format <https://w3id.org/mediatypes/text/turtle> ;
prof:hasArtifact <http://data.europa.eu/w21/016d88c3-a0b3-4506-ae4e-758e7401c096> ;
.


#
# DCAT-AP example 2: DCAT, DCAT-AP, DCAT-BE, GeoDCAT, StatDCAT-AP & GeoDCAT-AP-IT in a hierarchy of profiles
#
<https://www.w3.org/TR/vocab-dcat/>
a dct:Standard ;

<https://joinup.ec.europa.eu/release/dcat-ap-v11>
a prof:Profile ;
rdfs:label "DCAT-AP" ;
prof:isProfileOf <https://www.w3.org/TR/vocab-dcat/> ;

<http://dcat.be>
a prof:Profile ;
rdfs:label "DCAT-BE" ;
prof:isProfileOf <https://joinup.ec.europa.eu/release/dcat-ap-v11> ; # DCAT-AP

<https://joinup.ec.europa.eu/release/geodcat-ap-v10>
a prof:Profile ;
rdfs:label "GeoDCAT-AP" ;
prof:isProfileOf <https://joinup.ec.europa.eu/release/dcat-ap-v11> ; # DCAT-AP

<https://joinup.ec.europa.eu/solution/statdcat-application-profile-data-portals-europ>
a prof:Profile ;
rdfs:label "StatDCAT-AP" ;
prof:isProfileOf <https://joinup.ec.europa.eu/release/dcat-ap-v11> ; # DCAT-AP

<https://joinup.ec.europa.eu/news/geodcat-apit1>
a prof:Profile ;
rdfs:label "GeoDCAT-AP_IT" ;
prof:isProfileOf <https://joinup.ec.europa.eu/release/geodcat-ap-v10> ; # GeoDCAT-AP
Loading

0 comments on commit caf7d7d

Please sign in to comment.