Project:SPARQL/examples: Difference between revisions

Line 946: Line 946:




==Properties, Value Nodes, etc==
==Exploring Properties, paths, value nodes==


===All properties in use in the wikibase with property type, label and description (if present) ===
===All properties in use in the wikibase with property type, label and description (if present) ===
Line 1,061: Line 1,061:


## to access the timeValue and timePrecision of a date.  
## to access the timeValue and timePrecision of a date.  
## simple query for a date doesn't differentiate between "1880" and "1 January 1880"; both are returned as 1 January 1880
## simple query for a date doesn't differentiate between "1880" and "1 January 1880"; both are returned as 1 January 1880 (and SELECT DISTINCT will collapse them into a single result)
## there are 14 codes for precision from billion years to second. the ones that might be useful for this project are 7: century, 8: decade, 9: year, 10: month, 11: day
## there are 14 codes for precision from billion years to second. 7: century, 8: decade, 9: year, 10: month, 11: day
## NB needs bnpsv: prefix
## NB needs bnpsv: prefix
## TODO work out why it gets 1 more result than ?item bnwdt:P26  ?date.


PREFIX bnwd: <https://beyond-notability.wikibase.cloud/entity/>
PREFIX bnwd: <https://beyond-notability.wikibase.cloud/entity/>
579

edits