W3C home > Mailing lists > Public > public-dxwg-wg@w3.org > July 2019

Re: [dxwg] Current https://raw.githubusercontent.com/w3c/dxwg/gh-pages/dcat/rdf/dcat.ttl is inconsistent (#944)

From: Chris Mungall via GitHub <sysbot+gh@w3.org>
Date: Wed, 17 Jul 2019 18:29:11 +0000
To: public-dxwg-wg@w3.org
Message-ID: <issue_comment.created-512514152-1563388149-sysbot+gh@w3.org>
I think you need to declare primaryTopic to be an OP

This works as expected:

@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix dctype: <http://purl.org/dc/dcmitype/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix locn: <http://www.w3.org/ns/locn#> .
@prefix odrl: <http://www.w3.org/ns/odrl/2/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sdo: <http://schema.org/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix time: <http://www.w3.org/2006/time#> .
@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

foaf:primaryTopic a owl:ObjectProperty .

dcat:CatalogRecord  rdfs:subClassOf [
        rdf:type owl:Restriction ;
       owl:cardinality "1"^^xsd:nonNegativeInteger ;
       owl:onProperty foaf:primaryTopic ;
    ] .

however, omitting the declaration causes the parse error.   

I believe this is consistent with the specs:


Sometimes the owlapi will infer these declarations but this isn't guaranteed. Missing OP declarations is a common source of errors, especially when trying to repurpose ontologies that were designed to be RDFS as OWL ontologies.

GitHub Notification of comment by cmungall
Please view or discuss this issue at https://github.com/w3c/dxwg/issues/944#issuecomment-512514152 using your GitHub account
Received on Wednesday, 17 July 2019 18:29:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:42:18 UTC