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

v3 Support for RDFS without OWL #234

Open
jamrce opened this issue Nov 1, 2024 · 1 comment
Open

v3 Support for RDFS without OWL #234

jamrce opened this issue Nov 1, 2024 · 1 comment

Comments

@jamrce
Copy link

jamrce commented Nov 1, 2024

pyLODE v2 supports ontologies that use rdfs:Class and owl:Class. However testing with v3 appears to only support owl:Class. Is this a choice that has been made with the development of pyLODE or just an issue from the current status of development?

Note: the pyLODE README about what it supports still states both. There is a typo there that support should be for rdfs:Class, not rdf:Class once this issue is clarified.

I've tested with both my own .ttl file ontology and also modifying the minimal example below with the same result - rdfs:Class entities not being generated in the documentation.

Modified minimal example

@prefix : <http://example.com/minimal/> .
@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 skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.com/minimal>
    a owl:Ontology ;
    rdfs:label "Minimal Ontology" ;
    dct:created "2018-02-16"^^xsd:date ;
    rdfs:comment """This is a minimal ontology for testing pyLODE"""@en ;
.

:isProfileOf
    a rdf:Property ; # This works regardless of being an rdf:Property or owl:ObjectProperty
    rdfs:label "is profile of" ;
    skos:definition "A specification for which this Profile defines constraints, extensions, or which it uses in combination with other specifications, or provides guidance or explanation about its usage"@en ;
.

:Profile
    a rdfs:Class ; # This doesn't work for rdfs:Class but does for owl:Class
    rdfs:label "Profile" ;
    rdfs:subClassOf dct:Standard ;
    skos:definition """A specification that constrains, extends, combines, or provides guidance or explanation about the usage of other specifications."""@en ;
.

@rhiaro
Copy link

rhiaro commented Nov 8, 2024

Hello! I came here to say exactly this. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants