User:Iwan.Aucamp/Drafts
Making sense of cell type (Q189118) and anatomical structure (Q4936952)
[edit]There are some statements relating to cell (Q7868), cell type (Q189118) and anatomical structure (Q4936952) that seem a bit odd to me and I would appreciate if others can confirm if it makes sense or if something should be fixed.
Currently the following statements exists:
- cell (Q7868)instance of (P31)cell type (Q189118): Seems right to me
- cell (Q7868)subclass of (P279)anatomical structure (Q4936952): Seems right to me
- cell type (Q189118)instance of (P31)anatomical structure (Q4936952): This seems wrong to me, I would say cell type (Q189118)subclass of (P279)anatomical structure (Q4936952) would make more sense.
- anatomical structure (Q4936952)instance of (P31)second-order class (Q24017414): This seems wrong to me, I would say there should be a different item type of anatomical structureinstance of (P31)second-order class (Q24017414) which also has type of anatomical structuresubclass of (P279)type (Q21146257)
of (P642)anatomical structure (Q4936952)
I have looked a bit at other first order metaclasses and it is hard to say if what is happening this is correct. I have also looked for guidelines or explanation of how to use metaclasses and all I can find is Wikidata:WikiProject_Ontology/Modelling.
Specific cases where I would say metaclasses are being used more correctly (don't take this as an endorsement of all statements):
And of course taxon (Q16521) seems right:
- taxon (Q16521)instance of (P31)second-order class (Q24017414)
- taxon (Q16521)subclass of (P279)class (Q16889133)
If I had to sum up what my main problem is with cell (Q7868), cell type (Q189118) and anatomical structure (Q4936952) is that we have items which end up both subclasses and instances of the same item - which I would say should not happen - or at least in this case does not make a lot of sense to me.
I am not entirely sure about all of this and I don't want to go around breaking things. I would appreciate other opinions on the matter. If we could declare that some specific use of metaclasses are correct and maybe give some examples of incorrect use and why it is incorrect it would be great.
Queries
[edit]Items which are instance of and subclass of the same metaclass
## TIMES OUT
SELECT ?item ?itemLabel ?metaClass ?metaClassLabel WHERE {
?metaClass wdt:P31 wd:Q24017414.
?item wdt:P279+ ?metaClass.
?item wdt:P31 / wdt:P279* ?metaClass.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
LIMIT 100
## TIMES OUT
SELECT ?item ?metaClass WHERE {
?metaClass wdt:P31 wd:Q24017414.
?item wdt:P279+ ?metaClass.
?item wdt:P31 / wdt:P279* ?metaClass.
}
LIMIT 100
first order metaclasses:
SELECT ?metaClass ?metaClassLabel WHERE {
?metaClass wdt:P31 wd:Q24017414.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
items that are instance of and subclass of telephone model:
SELECT ?item ?itemLabel ?metaClass ?metaClassLabel WHERE {
?item wdt:P279+ wd:Q41622600.
?item wdt:P31 / wdt:P279* wd:Q41622600.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
LIMIT 100
items that are instances of but not subclass of telephone model:
SELECT ?item ?itemLabel ?metaClass ?metaClassLabel WHERE {
?item wdt:P31 / wdt:P279* wd:Q41622600.
MINUS { ?item wdt:P279+ wd:Q41622600. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
LIMIT 100
items that are direct instances and subclasses of same thing:
SELECT ?item ?itemLabel ?class ?classLabel WHERE {
?item wdt:P279 ?class.
?item wdt:P31 ?class.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
LIMIT 100
items that are instances and second order subclasses of the same thing:
## TIMES OUT
SELECT ?item ?itemLabel ?class ?classLabel WHERE {
?item wdt:P279/wdt:P279 ?class.
?item wdt:P31 ?class.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
LIMIT 100
010
[edit]020
[edit]030
[edit]040
[edit]What should be an subclass of (P279) of a technical standard (Q317623) and what should be instance of (P31) of a technical standard (Q317623)
[edit]I want to import metadata for documents published by 3GPP, some example documents:
This however made me wonder about the appropriate structure, what organizational items should there be, what should be an subclass of (P279) and what should be instance of (P31) etc.
I have looked at current subclass of (P279) report (Q10870555), technical standard (Q317623) and specification (Q2101564) - and there seems to be somewhat of a lack of consistency.
The clearest guidelines for structuring information like this that that I can find at the moment is from Wikidata:WikiProject_Books#Bibliographic_properties.
Using the approach from WikiProject Books it would imply that.
- 3GPP TS 23.002: Network architectureinstance of (P31)written work (Q47461344)
- 3GPP TS 23.002: Network architecture: Version 14.1.0instance of (P31)version, edition or translation (Q3331189)
This is rather similar to what is happening with ITU-T ITU-T Recommendation (Q55935585) and ITU-T recommendation version (Q55936923) except that ITU-T recommendation version (Q55936923)subclass of (P279)ITU-T Recommendation (Q55935585) which runs contrary to the WikiProject Books Guidelines IMO.
For example:
- G.711 (Q952898)instance of (P31)ITU-T Recommendation (Q55935585) and thus instance of (P31)written work (Q47461344)
- X.21 (Q1424171)instance of (P31)ITU-T Recommendation (Q55935585) and thus instance of (P31)written work (Q47461344)
- Recommendation X.21 (11/1988): Interface between data terminal equipment (DTE) and data circuit-terminating equipment (DCE) for synchronous operation on public data networks (Q26928834)instance of (P31)ITU-T recommendation version (Q55936923) and thus instance of (P31)version, edition or translation (Q3331189)
For other cases, like IEEE it is a bit of a mess really (not that ITU-T is not a mess). Similar to ITU-T there is IEEE standard (Q55755785) and IEEE standard version (Q55936932) but there is almost no consistency in how they are used with the following statements occurring:
- IEEE 802.11n (Q1193354)instance of (P31)IEEE standard version (Q55936932) - this should rather be IEEE 802.11n (Q1193354)instance of (P31)IEEE standard (Q55755785) IMO.
- IEEE 802.11ac (Q1188495)subclass of (P279)IEEE 802.11 (Q193228) - this should rather be IEEE 802.11ac (Q1188495)instance of (P31)IEEE 802.11 (Q193228) - and IEEE 802.11 (Q193228) should be relabelled to make it clear it is a family of standards - and should possibly be instance of family standard or something. In this case the constraint from WikiProject Books IEEE 802.11ac (Q1188495)instance of (P31)written work (Q47461344) will not hold.
I have analysed some other cases also:
- World Wide Web Consortium (Q37033): both standards and their versions are instance of (P31)W3C Recommendation (Q2661442) - e.g. HTML (Q8811) and HTML 4.0 (Q3782232)
- International Organization for Standardization (Q15028): Really no consistency - there are many cases where prominent standards such as ISO/IEC 14882 (Q66084444) and ISO/IEC 9899 (Q85547147) are both subclass of (P279)W3C Recommendation (Q2661442) and instance of (P31)W3C Recommendation (Q2661442)
- ANSI and ECMA, specific versions are instance of (P31)W3C Recommendation (Q2661442) - there are no entries for the standards without version.
I'm working on a detailed proposal for a 3GPP publication ontology here if someone wants to have a look.
This raises a couple of questions:
- Where is the right place to capture a recommended ontology for 3GPP publications and possibly other technical recommendations, reports, specifications and standards such as ISO and IEEE? Should it go under a WikiProject? If so which one? If not where?
- What is the right way to organize standards and specifications? I think every standard such as ISO/IEC 14882 (Q66084444) should be instance of (P31)written work (Q47461344) and not subclass of (P279)written work (Q47461344). And I think every every version of a standard should be instance of (P31)version, edition or translation (Q3331189) and not instance of (P31)written work (Q47461344) or subclass of (P279)written work (Q47461344) or subclass of (P279)version, edition or translation (Q3331189).
Any input on this matter would be appreciated.
Trees
[edit]- subclass of (P279)report (Q10870555)
- Wikidata generic tree
- Wikidata Graph Builder
- Try it!
PREFIX gas: <http://www.bigdata.com/rdf/gas#> SELECT ?item ?itemLabel ?linkTo { SERVICE gas:service { gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.SSSP" ; gas:in wd:Q10870555 ; gas:traversalDirection "Reverse" ; gas:out ?item ; gas:out1 ?depth ; gas:maxIterations 3 ; gas:linkType wdt:P279 . } OPTIONAL { ?item wdt:P279 ?linkTo } SERVICE wikibase:label {bd:serviceParam wikibase:language "en" } }
- Try it!
SELECT ?item ?itemLabel ?linkTo { ?item wdt:P279 wd:Q10870555 SERVICE wikibase:label {bd:serviceParam wikibase:language "en" } }
- subclass of (P279)technical standard (Q317623)
- Wikidata generic tree
- Wikidata Graph Builder
- Try it!
PREFIX gas: <http://www.bigdata.com/rdf/gas#> SELECT ?item ?itemLabel ?linkTo { SERVICE gas:service { gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.SSSP" ; gas:in wd:Q317623 ; gas:traversalDirection "Reverse" ; gas:out ?item ; gas:out1 ?depth ; gas:maxIterations 3 ; gas:linkType wdt:P279 . } OPTIONAL { ?item wdt:P279 ?linkTo } SERVICE wikibase:label {bd:serviceParam wikibase:language "en" } }
- Try it!
SELECT ?item ?itemLabel ?linkTo { ?item wdt:P279 wd:Q317623 SERVICE wikibase:label {bd:serviceParam wikibase:language "en" } }
- subclass of (P279)specification (Q2101564)
- Wikidata generic tree
- Wikidata Graph Builder
- Try it!
PREFIX gas: <http://www.bigdata.com/rdf/gas#> SELECT ?item ?itemLabel ?linkTo { SERVICE gas:service { gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.SSSP" ; gas:in wd:Q2101564 ; gas:traversalDirection "Reverse" ; gas:out ?item ; gas:out1 ?depth ; gas:maxIterations 3 ; gas:linkType wdt:P279 . } OPTIONAL { ?item wdt:P279 ?linkTo } SERVICE wikibase:label {bd:serviceParam wikibase:language "en" } }
- Try it!
SELECT ?item ?itemLabel ?linkTo { ?item wdt:P279 wd:Q2101564 SERVICE wikibase:label {bd:serviceParam wikibase:language "en" } }