Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional mappings to schema.org #146

Merged
merged 6 commits into from
Mar 9, 2018
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions dcat/rdf/schema.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,42 @@
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://purl.org/dc/elements/1.1/title>
owl:equivalentProperty schema:name ;
.
dcterms:description
owl:equivalentProperty schema:description ;
.
dcterms:format
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to me that dcterms:format should be mapped to schema:fileFormat instead of schema:encodingFormat (that has domain schema:MediaObject)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took that straight from https://www.w3.org/2015/spatial/wiki/ISO_19115_-_DCAT_-_Schema.org_mapping#Distribution
At this stage I didn't challenge the prior work, I merely encoded it.
However, I did have to apply some judgement about whether to use rdfs:subPropertyOf or owl:equivalentProperty

owl:equivalentProperty schema:encodingFormat ;
.
dcterms:identifier
owl:equivalentProperty schema:identifier ;
.
dcterms:issued
owl:equivalentProperty schema:datePublished ;
.
dcterms:language
owl:equivalentProperty schema:inLanguage ;
.
dcterms:license
owl:equivalentProperty schema:license ;
.
dcterms:modified
owl:equivalentProperty schema:dateModified ;
.
dcterms:publisher
owl:equivalentProperty schema:publisher ;
.
dcterms:spatial
owl:equivalentProperty schema:spatial ;
owl:equivalentProperty schema:spatialCoverage ;
.
dcterms:temporal
owl:equivalentProperty schema:datasetTimeInterval ;
owl:equivalentProperty schema:temporal ;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

schema:temporal and schema:datasetTimeInterval have both been superseded by schema:temporalCoverage, so I wonder if we should not include them in the mapping

Copy link
Contributor Author

@dr-shorthair dr-shorthair Mar 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes - I noticed that. For now I included everything I found in the prior work. The idea was to have a starting point to work from for a possibly normative alignment. I would also agree to dropping all reference to anything external that is already marked 'deprecated' but maybe we can do that in the next phase?

owl:equivalentProperty schema:temporalCoverage ;
.
schema:DataDownload
rdfs:subClassOf dcat:Distribution ;
.
Expand All @@ -27,18 +63,26 @@ dcat:Catalog
dcat:Dataset
owl:equivalentClass schema:Dataset ;
.
dcat:Distribution
rdfs:subClassOf schema:DataDownload ;
.
dcat:accessURL
schema:domainIncludes dcat:Distribution ;
schema:rangeIncludes rdfs:Resource ;
rdfs:subPropertyOf schema:contentUrl ;
.
dcat:byteSize
schema:domainIncludes dcat:Distribution ;
schema:rangeIncludes rdfs:Literal ;
rdfs:subPropertyOf schema:contentSize ;
.
dcat:bytes
schema:domainIncludes dcat:Distribution ;
schema:rangeIncludes xsd:integer ;
.
dcat:contactPoint
owl:equivalentProperty schema:contactPoint ;
.
dcat:dataDictionary
schema:domainIncludes dcat:Dataset ;
.
Expand All @@ -48,29 +92,36 @@ dcat:dataQuality
dcat:dataset
schema:domainIncludes dcat:Catalog ;
schema:rangeIncludes dcat:Dataset ;
owl:equivalentProperty schema:dataset ;
.
dcat:distribution
schema:domainIncludes dcat:Dataset ;
schema:rangeIncludes dcat:Distribution ;
owl:equivalentProperty schema:distribution ;
.
dcat:downloadURL
schema:domainIncludes dcat:Distribution ;
schema:rangeIncludes rdfs:Resource ;
rdfs:subPropertyOf schema:contentUrl ;
.
dcat:granularity
schema:domainIncludes dcat:Dataset ;
.
dcat:keyword
schema:domainIncludes dcat:Dataset ;
schema:rangeIncludes rdfs:Literal ;
rdfs:comment "Mapped as a sub-property of schema:keywords - dcat:keyword is singular, schema:keywords is plural" ;
rdfs:subPropertyOf schema:keywords ;
.
dcat:landingPage
schema:domainIncludes dcat:Dataset ;
schema:rangeIncludes foaf:Document ;
rdfs:subPropertyOf schema:url ;
.
dcat:mediaType
schema:domainIncludes dcat:Distribution ;
schema:rangeIncludes dcterms:MediaTypeOrExtent ;
owl:equivalentProperty schema:encodingFormat ;
.
dcat:record
schema:domainIncludes dcat:Catalog ;
Expand All @@ -82,6 +133,7 @@ dcat:size
dcat:theme
schema:domainIncludes dcat:Dataset ;
schema:rangeIncludes skos:Concept ;
owl:equivalentProperty schema:about ;
.
dcat:themeTaxonomy
schema:domainIncludes dcat:Catalog ;
Expand All @@ -91,11 +143,24 @@ dcat:themeTaxonomy
rdf:type owl:Ontology ;
dcterms:created "2018-02-19"^^xsd:date ;
dcterms:creator <http://registry.it.csiro.au/sandbox/csiro/person/Simon-Cox> ;
rdfs:comment "<p>Based in part on Project Open Data mappings described in <a href=\"https://project-open-data.cio.gov/metadata-resources/\">https://project-open-data.cio.gov/metadata-resources/</a></p>"^^rdf:HTML ;
rdfs:comment "<p>Based in part on SDWWG ISO 19115 - DCAT - Schema.org mapping described in <a href=\"https://www.w3.org/2015/spatial/wiki/ISO_19115_-_DCAT_-_Schema.org_mapping\">https://www.w3.org/2015/spatial/wiki/ISO_19115_-_DCAT_-_Schema.org_mapping</a></p>"^^rdf:HTML ;
rdfs:comment "NOTE: this alignment is provisional and incomplete, and is added to the repository here to (a) support further development of the DCAT-SDO alignment (b) demonstrate the strategy of modularizing alignments and dependencies into separate RDF files." ;
rdfs:comment "RDF graph containing alignment axioms between DCAT and schema.org" ;
rdfs:label "DCAT-SDO alignment" ;
rdfs:seeAlso <https://github.com/w3c/dxwg/issues/110> ;
rdfs:seeAlso <https://project-open-data.cio.gov/metadata-resources/> ;
rdfs:seeAlso <https://www.w3.org/2015/spatial/wiki/ISO_19115_-_DCAT_-_Schema.org_mapping> ;
owl:imports <http://www.w3.org/ns/dcat> ;
owl:imports <https://raw.githubusercontent.com/schemaorg/schemaorg/master/data/releases/3.3/all-layers.ttl> ;
owl:imports <https://raw.githubusercontent.com/schemaorg/schemaorg/master/data/releases/3.3/ext-meta.ttl> ;
.
foaf:Organization
owl:equivalentClass schema:Organization ;
.
foaf:homepage
owl:equivalentProperty schema:url ;
.
foaf:mbox
owl:equivalentProperty schema:email ;
.