w3c-lbd-cg / bot

Building Topology Ontology
https://w3id.org/bot
53 stars 15 forks source link

Reintroducing deprecated property in BOT #72

Closed GeorgFerdinandSchneider closed 3 years ago

GeorgFerdinandSchneider commented 4 years ago

Up to now they have been removed completely from the ontology file.

In one of the upcoming next calls it should be determined whether outdated properties should be reintroduced, marked as deprecated.

Example:

bot:hostsElement a owl:ObjectProperty ;
        rdfs:label      "hosts element"@en ;
        rdfs:comment    "Relation between an element a) and another element b) hosted by element a). Example: inst:wall bot:hostsElement inst:window"@en ;
    owl:deprecated "true"^^xsd:boolean .

The removed properties are:

bot:hostsElement

GeorgFerdinandSchneider commented 4 years ago

Should be reintroduced as discussed in https://github.com/w3c-lbd-cg/bot/pull/53


@prefix rdf:        <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl:        <http://www.w3.org/2002/07/owl#> .
@prefix rdfs:       <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd:        <http://www.w3.org/2001/XMLSchema#> .

@prefix bot: <https://w3id.org/bot#> .

bot:hostsElement a owl:ObjectProperty ;
        rdfs:label      "hosts element"@en ;
        rdfs:comment    "Relation between an element a) and another element b) hosted by element a). Example: inst:wall bot:hostsElement inst:window"@en ;
    owl:deprecated "true"^^xsd:boolean .
mathib commented 4 years ago

would it be good to add some words to the (english) definition? E.g. "DEPRECATED" and a word on the new approach (in this case, "use bot:hasSubElement instead")?

GeorgFerdinandSchneider commented 4 years ago

+1

We can use the rdfs:seeAlso annotation property for this purpose and add a note in the description:

@prefix rdf:        <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl:        <http://www.w3.org/2002/07/owl#> .
@prefix rdfs:       <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd:        <http://www.w3.org/2001/XMLSchema#> .

@prefix bot: <https://w3id.org/bot#> .

bot:hostsElement a owl:ObjectProperty ;
        rdfs:label      "hosts element"@en ;
        rdfs:comment    "This property is DEPRECATED, use bot:hasSubElement instead."@en ;
        rdfs:seeAlso bot:hasSubElement ;
    owl:deprecated "true"^^xsd:boolean .
mathib commented 4 years ago

Looks good. Maybe also keep the old definition in the rdfs:comment?

@prefix rdf:        <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl:        <http://www.w3.org/2002/07/owl#> .
@prefix rdfs:       <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd:        <http://www.w3.org/2001/XMLSchema#> .
@prefix bot: <https://w3id.org/bot#> .

bot:hostsElement a owl:ObjectProperty ;
        rdfs:label      "hosts element"@en ;
        rdfs:comment    "This property is DEPRECATED, use bot:hasSubElement instead /// ORIGINAL definition: Relation between an element a) and another element b) hosted by element a). Example: inst:wall bot:hostsElement inst:window "@en ;
        rdfs:seeAlso bot:hasSubElement ;
    owl:deprecated "true"^^xsd:boolean .
GeorgFerdinandSchneider commented 4 years ago

+1

VladimirAlexiev commented 3 years ago

Let's use the turtle shortcut: owl:deprecated true

mathib commented 3 years ago

should deprecated concepts also be added to the HTML?

mathib commented 3 years ago

During the W3C-LBD-CG call of the 23rd of March, the group decided the following:

The bot:hostsElement property will be added as deprecated to the current v0.3.2 (using owl:deprecated and starting rdfs:comment with “This property is DEPRECATED, use bot:hasSubElement instead // ORIGINAL definition: ...”. In addition, an rdfs:seeAlso to the other BOT property that should be used instead (bot:hasSubElement) is included. The HTML doc of BOT will also include this deprecated property.