cwrc / HuViz

LOD visualization tool for humanities datasets
8 stars 1 forks source link

Get HuViz to ignore the deprecated terms in the ontology #111

Open antimony27 opened 7 years ago

antimony27 commented 7 years ago

@smurp We are seeing deprecated classes, properties and instances in the datafile represented in HuViz. Is it possible to eliminate them?

SusanBrown commented 7 years ago

We agreed that this would be a setting with default to ignore, so that you could view them if you wanted.

SusanBrown commented 7 years ago

There are 3 types of deprecate involved.

Deprecated class example `

sex identity identité sexe Deprecated in favour of class Gender. Désapprouver en faveur de la classe Gender. deprecated ` Deprecated property example ``` cwrc:hasCulturalForms void:inDataset cwrc:datasetdefinition ; a owl:DeprecatedProperty, skos:Concept ; rdfs:isDefinedBy ; owl:equivalentProperty cwrc:hasCulturalForm ; rdfs:label "a une formation culturelle"@fr, "has a cultural form"@en ; skos:definition "Cette sous-classe de culturalFormation associe des ``` Deprecated instances
smurp commented 7 years ago

Add a setting respect_owl_deprecated_property which defaults to True. Only when it is true should the three forms of deprecation be respected, ie have their associated subjects existence suppressed.

smurp commented 7 years ago

Oh goodness. It looks like there might be the temptation to also respect dcterms:isReplacedBy (which appears to be in use in the CWRC ontology). I would submit that this ought to be a separate undertaking.

ghost commented 7 years ago

Agree. Leave it for now and see if it emerges as a need.

On Aug 2, 2017, at 1:05 AM, Shawn Murphy notifications@github.com wrote:

Oh goodness. It looks like there might be the temptation to also respect dcterms:isReplacedBy. I would submit that this ought to be a separate undertaking.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cwrc/HuViz/issues/111#issuecomment-319568523, or mute the thread https://github.com/notifications/unsubscribe-auth/AA1s9aHSfqJz4l3eouDn_grskH6_guMoks5sUAO2gaJpZM4Ol5DQ.

SusanBrown commented 7 years ago

Deprecation not being respected in alpha.

sex identity is deprecated but is showing up in the graph

image

cwrc:SexIdentity dcterms:isReplacedBy cwrc:Gender ; void:inDataset cwrc:datasetdefinition ; a owl:DeprecatedClass, skos:Concept ; rdfs:comment "Deprecated in favour of class Gender."@en, "Désapprouver en faveur de la classe Gender."@fr ; rdfs:isDefinedBy <http://sparql.cwrc.ca/ontologies/cwrc-2017-08-03> ; rdfs:label "identité sexe"@fr, "sex identity"@en ; rdfs:subClassOf cwrc:CulturalForm ; owl:equivalentClass cwrc:Gender ; vs:term_status "deprecated"@en .

It does have the isReplacedBy edge so we need to eliminate that too

file: https://raw.githubusercontent.com/cwrc/ontology/master/cwrc.ttl version: beta: image

ghost commented 7 years ago

ditto beta

On Aug 2, 2017, at 9:47 PM, SusanBrown notifications@github.com wrote:

Deprecation not being respected in alpha.

sex identity is deprecated but is showing up in the graph

https://user-images.githubusercontent.com/545952/28902236-bc963352-77cb-11e7-8df5-517d225dc270.png cwrc:SexIdentity dcterms:isReplacedBy cwrc:Gender ; void:inDataset cwrc:datasetdefinition ; a owl:DeprecatedClass, skos:Concept ; rdfs:comment "Deprecated in favour of class Gender."@en, "Désapprouver en faveur de la classe Gender."@fr ; rdfs:isDefinedBy http://sparql.cwrc.ca/ontologies/cwrc-2017-08-03 ; rdfs:label "identité sexe"@fr, "sex identity"@en ; rdfs:subClassOf cwrc:CulturalForm ; owl:equivalentClass cwrc:Gender ; vs:term_status "deprecated"@en .

It does have the isReplacedBy edge so we need to eliminate that too

file: https://raw.githubusercontent.com/cwrc/ontology/master/cwrc.ttl https://raw.githubusercontent.com/cwrc/ontology/master/cwrc.ttl version: beta: https://user-images.githubusercontent.com/545952/28902289-0232c20e-77cc-11e7-9699-8f0ac9879520.png — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cwrc/HuViz/issues/111#issuecomment-319845120, or mute the thread https://github.com/notifications/unsubscribe-auth/AA1s9Q4cuP8W41uzp5QshRp3qK2mxZdRks5sUSa-gaJpZM4Ol5DQ.