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:

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:

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
Try it!
## TIMES OUT
SELECT ?item ?metaClass WHERE {
  ?metaClass wdt:P31 wd:Q24017414.
  ?item wdt:P279+ ?metaClass.
  ?item wdt:P31 / wdt:P279* ?metaClass.
}
LIMIT 100
Try it!

first order metaclasses:

SELECT ?metaClass ?metaClassLabel WHERE {
  ?metaClass wdt:P31 wd:Q24017414.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Try it!

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
Try it!

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
Try it!

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
Try it!

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
Try it!

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.

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:

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:

I have analysed some other cases also:

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:

Any input on this matter would be appreciated.

Trees edit

  • subclass of (P279)report (Q10870555)
    • Wikidata generic tree
    • Wikidata Graph Builder
    • 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" }
      }
      
      Try it!
  • subclass of (P279)technical standard (Q317623)
    • Wikidata generic tree
    • Wikidata Graph Builder
    • 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" }
      }
      
      Try it!
  • subclass of (P279)specification (Q2101564)
    • Wikidata generic tree
    • Wikidata Graph Builder
    • 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" }
      }
      
      Try it!