User:Rc1959/InformaticsQueriesCIM
Matching Wikidata and CIM edit
Wikidata on one side, and CIM (WMI, WBEM) have classes and properties in common, but:
- the equivalence relations between them will never be one-to-one.
- they might be not stable, not normalised, changing without warning.
Where to store the CIM properties edit
The matching properties might not be stored in Wikidata, at first.
- There might be trial and error.
- It also involves property definitions strictly in Survol.
- Some ontologies are dynamically generated.
=> To start with, static RDF file on Survol site.
Storing WMI and WBEM ontologies edit
- RDF files stored on Survol site.
Exploring process (Q205663): CIM_Process edit
process (Q205663) instances edit
- instance of (P31): that class of which this subject is a particular example and member
Misplaced data here: "mastering", "Bids for the 2014 Winter Olympics", "Microbial biodegradation", "repatriation" ...
SELECT DISTINCT ?subjectLabel WHERE {
?subject wdt:P31 wd:Q205663 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
process (Q205663) subclasses edit
- subclass of (P279): all instances of these items are instances of those items; this item is a class (subset) of that item.
Why does it also display these results ? "Q23394081" "economic development" "ethical consumerism"
SELECT DISTINCT ?subjectLabel WHERE {
?subject wdt:P279* wd:Q205663 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
process (Q205663) subclasses with graph view edit
#defaultView:Graph
SELECT DISTINCT ?subject ?subjectLabel ?subclassOf WHERE {
?subject wdt:P279* wd:Q205663 .
OPTIONAL { ?subject wdt:P279 ?subclassOf } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
Exploring computer file (Q82753): CIM_DataFile edit
Typical output: "C header file", "Wikimedia Commons file", "audio file" etc... With instance of (P31), it returns apparently books titles.
SELECT DISTINCT ?subjectLabel WHERE {
?subject wdt:P279* wd:Q82753 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
ORDER BY ?subjectLabel
Exploring directory (Q201456): CIM_Directory edit
directory (Q201456) instances edit
Typical output: "/bin", "/dev", "Program Files" but also "Cinémathèque québécoise".
SELECT DISTINCT ?subjectLabel WHERE {
?subject wdt:P31* wd:Q201456 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
ORDER BY ?subjectLabel
directory (Q201456) subclasses edit
Typical output: directory, home directory, mount point, podcast directory, root directory, special folder, working directory.
SELECT DISTINCT ?subjectLabel WHERE {
?subject wdt:P279* wd:Q201456 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
ORDER BY ?subjectLabel