Skip to content

Commit

Permalink
Service example
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Cox committed Oct 12, 2018
1 parent f37cf24 commit 9575cf7
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions dcat/examples/dataset-004.ttl
@@ -0,0 +1,48 @@
# baseURI: http://example.org/dataset-004
# imports: http://www.w3.org/ns/dcat

@prefix : <http://example.org/dataset-004#> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dct: <http://purl.org/dc/terms/> .
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/dataset-004>
rdf:type owl:Ontology ;
owl:imports <http://www.w3.org/ns/dcat> ;
.
:dataset-004
rdf:type dcat:Dataset ;
dcat:distribution :dataset-004-csv ;
dcat:distribution :dataset-004-png ;
.
:dataset-004-csv
rdf:type dcat:Distribution ;
dcat:accessService :table-service-005 ;
dcat:accessURL <http://example.org/api/table-005> ;
dcat:mediaType <https://www.iana.org/assignments/media-types/text/csv> ;
.
:dataset-004-png
rdf:type dcat:Distribution ;
dcat:accessService :figure-service-006 ;
dcat:accessURL <http://example.org/api/figure-006> ;
dcat:mediaType <https://www.iana.org/assignments/media-types/image/png> ;
.
:figure-service-006
rdf:type dcat:DataDistributionService ;
dct:conformsTo <http://example.org/apidef/figure/v1.0> ;
dct:type <https://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/view> ;
dcat:endpointDescription <http://example.org/api/figure-006/params> ;
dcat:endpointURL <http://example.org/api/figure-006> ;
dcat:servesDataset :dataset-004 ;
.
:table-service-005
rdf:type dcat:DataDistributionService ;
dct:conformsTo <http://example.org/apidef/table/v2.2> ;
dct:type <https://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/download> ;
dcat:endpointDescription <http://example.org/api/table-005/capability> ;
dcat:endpointURL <http://example.org/api/table-005> ;
dcat:servesDataset :dataset-004 ;
.

0 comments on commit 9575cf7

Please sign in to comment.