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

flag deprecated schema.org types and properties #126

Open
newgene opened this issue Feb 15, 2022 · 1 comment
Open

flag deprecated schema.org types and properties #126

newgene opened this issue Feb 15, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@newgene
Copy link
Member

newgene commented Feb 15, 2022

We currently load the schemaorg-all-https.jsonld, which includes

the definition of all terms in, all sections of, the vocabulary, plus terms retired from the vocabulary (See the attic section for details).

The retired item can be identified with schema:isPartOf has "https://attic.schema.org" in the value:

{
    "@id": "schema:variablesMeasured",
    "@type": "rdf:Property",
    "rdfs:comment": "Originally named [[variablesMeasured]], The [[variableMeasured]] property can indicate (repeated as necessary) the  variables that are measured in some dataset, either described as text or as pairs of identifier and description using PropertyValue.",
    "rdfs:label": "variablesMeasured",
    "schema:domainIncludes": {
        "@id": "schema:Dataset"
    },
    "schema:isPartOf": {
        "@id": "https://attic.schema.org"
    },
    "schema:rangeIncludes": [
        {
            "@id": "schema:PropertyValue"
        },
        {
            "@id": "schema:Text"
        }
    ]
},

We should label retired types/properties in the DDE's schema UI (schema viewer and class-extension).

@newgene newgene added the enhancement New feature or request label Feb 15, 2022
@gtsueng
Copy link
Collaborator

gtsueng commented Jan 18, 2023

Maybe the retired properties and types can be displayed as gray or red text (or with strike through) to give some visual indication that it has been deprecated. This way deprecated properties can still be viewed, but there are visual cues to indicate they shouldn't be used.
image

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

No branches or pull requests

3 participants