Discussion:
[protege-user] Rendering names (2 questions)
Iglewski, Michal
2018-11-20 03:42:49 UTC
Permalink
Hello,

I've created a simple ontology importing bfo.owl:

<?xml version="1.0"?>
<rdf:RDF xmlns="http://purl.obolibrary.org/obo/symp_test.owl#<http://purl.obolibrary.org/obo/symp_test.owl>"
xml:base="http://purl.obolibrary.org/obo/symp_test.owl"
xmlns:obo="http://purl.obolibrary.org/obo/"
xmlns:owl="http://www.w3.org/2002/07/owl#<http://www.w3.org/2002/07/owl>"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#<http://www.w3.org/1999/02/22-rdf-syntax-ns>"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#<http://www.w3.org/2001/XMLSchema>"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#<http://www.w3.org/2000/01/rdf-schema>">
<owl:Ontology rdf:about="http://purl.obolibrary.org/obo/symp_test.owl">
<owl:imports rdf:resource="http://purl.obolibrary.org/obo/bfo.owl"/>
</owl:Ontology>

<owl:Class rdf:about="http://purl.obolibrary.org/obo/BFO_0000001">
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">entity</rdfs:label>
<rdfs:isDefinedBy rdf:resource="http://purl.obolibrary.org/obo/bfo.owl"/>
</owl:Class>

<owl:Class rdf:about="http://purl.obolibrary.org/obo/SYMP_0000232">
<rdfs:subClassOf rdf:resource="http://purl.obolibrary.org/obo/SYMP_0000514"/>
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">bronchiolitis</rdfs:label>
</owl:Class>

<owl:Class rdf:about="http://purl.obolibrary.org/obo/SYMP_0000462">
<rdfs:subClassOf rdf:resource="http://purl.obolibrary.org/obo/BFO_0000001"/>
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">symptom</rdfs:label>
</owl:Class>

<owl:Class rdf:about="http://purl.obolibrary.org/obo/SYMP_0000514">
<rdfs:subClassOf rdf:resource="http://purl.obolibrary.org/obo/SYMP_0000462"/>
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">respiratory system and chest symptom</rdfs:label>
</owl:Class>

<owl:Class rdf:about="http://purl.obolibrary.org/obo/symp_test.owl#test">
<rdfs:subClassOf rdf:resource="http://purl.obolibrary.org/obo/SYMP_0000462"/>
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">test</rdfs:label>
</owl:Class>

<owl:Class rdf:about="http://purl.obolibrary.org/obo/OGMS_0000024">
<rdfs:subClassOf rdf:resource="http://purl.obolibrary.org/obo/BFO_0000001"/>
<rdfs:label>sign</rdfs:label>
</owl:Class>

</rdf:RDF>

When I open the file with Protégé (Protege-5.5.0-beta-5-SNAPSHOT), the following class hierarchy is displayed:
Owl:Thing
- entity
-- continuant
-- sign
- symptom
-- respiratory system and chest symptom
--- bronchiolitis
-- test

Question 1) why only one subclass of entity in bfo is displayed? Why continuant and not occurrent?

If the file is uploaded with webprotege, the display is different (https://webprotege.stanford.edu/#projects/6f3effd3-8d45-4701-af0d-e7a5f184b2dc/edit/Classes); all subclasses of bfo entity are displayed. However, the labels are replaced with the IRI. Playing with Primary and Secondary Display Names in the Display menu or Project Settings does not help.

Question 2) How to display the values of rdfs:label?
Michal Iglewski
2018-11-21 00:24:12 UTC
Permalink
Problem resolved after specifying the en language in webprotege Project
Settings and defining Primary Display Names (rdfs:label en and rdfs:label
lang) in webprotege Display.



--
Sent from: http://protege-project.136.n4.nabble.com/Protege-User-f4659818.html
Loading...