The property type is available under the wikibase:propertyType predicate: https://query.wikidata.org/#%23Subproperties%20of%20URL%20%28P2699%29%0ASELECT%20DISTINCT%20%3FsubProperties%20%3FsubPropertiesLabel%20%3FpropertyType%20WHERE%20%7B%0A%20%20%3FsubProperties%20wdt%3AP1647%2a%20wd%3AP2699%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20wikibase%3ApropertyType%20%3FpropertyType.%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D

Cheers, Lucas

On 07.06.2018 17:01, Thad Guidry wrote:
1. Ok, after 1 hour, I have given up trying to find some good documentation on Data Type querying with Sparql and asking for assistance from experts.

Many properties have a Data Type locked in with URL as shown on this Wiki maintenance page:
https://www.wikidata.org/wiki/Category:Properties_with_url-datatype

However, I don't quite understand how to get at the Data Type itself in Sparql ?
https://query.wikidata.org/#%23Subproperties%20of%20URL%20%28P2699%29%0ASELECT%20DISTINCT%20%3FsubProperties%20%3FsubPropertiesLabel%20WHERE%20%7B%0A%20%20%3FsubProperties%20wdt%3AP1647%2a%20wd%3AP2699.%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D

2. Should equivalent property and equivalent class both be a subproperty of URL (I have applied this assumption to both, but wondering if I might have missed some other way of expressing that or if not needed since the Data Type is set, but having difficulty querying that in 1.)

I'm looking to query subjects having a statement where the property is a Data Type = URL and filtered by contains("world")  (don't ask why, hahaha)

Thanks in advance for direction and help,
-Thad


_______________________________________________
Wikidata-tech mailing list
Wikidata-tech@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech