Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Project:Vocabulary
(view source)
Revision as of 01:39, 11 February 2020
724 bytes added
,
4 years ago
→Documenting
Line 17:
Line 17:
1. pointing to "good enough in class" examples (the best in class examples risk being overly complex)
1. pointing to "good enough in class" examples (the best in class examples risk being overly complex)
2. document how this is done using the Q and P templates
2. document how this is done using the Q and P templates
+
+
== defining properties for a type ==
+
+
{{SPARQL|query=
+
SELECT ?class ?classLabel ?wikidataQid ?property ?propertyLabel ?wikidataPid WHERE {
+
?class pdiot:P291 ?property.
+
OPTIONAL {?class pdiot:P103 ?wikidataQid}
+
OPTIONAL {?property pdiot:P104 ?wikidataPid}
+
SERVICE wikibase:label {
+
bd:serviceParam wikibase:language "en" .
+
}
+
}
+
ORDER BY ASC(?classLabel)
+
LIMIT 100
+
|label=expected properties
+
}}
+
+
{{SPARQL|query=
+
#defaultView:Graph
+
SELECT ?class ?classLabel ?rgb ?property ?propertyLabel WHERE {
+
?class pdiot:P291 ?property.
+
BIND ("111177" AS ?rgb)
+
SERVICE wikibase:label {
+
bd:serviceParam wikibase:language "en" .
+
}
+
}
+
ORDER BY ASC(?classLabel)
+
LIMIT 100
+
|label=graph of expected properties
+
}}
Podehaye
Bureaucrats
, editors,
Interface administrators
,
Ninjas
, nuke,
Administrators
,
Widget editors
15,627
edits
Navigation menu
Personal tools
Log in
Request account
Namespaces
Project page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
New Item
New Property
All items
All properties
All pages
Active Users
SAR service dev
Query Service
Maintenance
Administrator
Tools
Special pages
Printable version
Interaction
Community portal
WebXray
Recent changes
Contact Page
Telegram
Discourse forum
MyData Slack