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%0ASELE...
2. Should equivalent property https://www.wikidata.org/wiki/Property:P1628 and equivalent class https://www.wikidata.org/wiki/Property:P1709 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
The property type is available under the wikibase:propertyType predicate: https://query.wikidata.org/#%23Subproperties%20of%20URL%20%28P2699%29%0ASELE...
Cheers, Lucas
On 07.06.2018 17:01, Thad Guidry wrote:
- 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%0ASELE...
- Should equivalent property
https://www.wikidata.org/wiki/Property:P1628 and equivalent class https://www.wikidata.org/wiki/Property:P1709 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
Thanks Lucas !
With that I was able to find and tweak another example ( since you showed me it's a wikibase parameter itself ! thanks so much !)
This gives me my list of all the Properties that are of " propertyType wikibase: Url "
https://query.wikidata.org/#%23Properties%20of%20type%20URL%0A%23%20Make%20a...
On Thu, Jun 7, 2018 at 4:28 PM Lucas Werkmeister mail@lucaswerkmeister.de wrote:
The property type is available under the wikibase:propertyType predicate: https://query.wikidata.org/#%23Subproperties%20of%20URL%20%28P2699%29%0ASELE... Cheers, Lucas
On 07.06.2018 17:01, Thad Guidry wrote:
- 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%0ASELE...
- Should equivalent property
https://www.wikidata.org/wiki/Property:P1628 and equivalent class https://www.wikidata.org/wiki/Property:P1709 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 listWikidata-tech@lists.wikimedia.orghttps://lists.wikimedia.org/mailman/listinfo/wikidata-tech
Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
Well, for that you can also use Special:ListProperties/url https://www.wikidata.org/wiki/Special:ListProperties/url :)
On 08.06.2018 00:16, Thad Guidry wrote:
Thanks Lucas !
With that I was able to find and tweak another example ( since you showed me it's a wikibase parameter itself ! thanks so much !)
This gives me my list of all the Properties that are of " propertyType wikibase: Url "
https://query.wikidata.org/#%23Properties%20of%20type%20URL%0A%23%20Make%20a...
On Thu, Jun 7, 2018 at 4:28 PM Lucas Werkmeister <mail@lucaswerkmeister.de mailto:mail@lucaswerkmeister.de> wrote:
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 <https://www.wikidata.org/wiki/Property:P1628> and equivalent class <https://www.wikidata.org/wiki/Property:P1709> 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 <mailto:Wikidata-tech@lists.wikimedia.org> https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
_______________________________________________ Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org <mailto:Wikidata-tech@lists.wikimedia.org> https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
wikidata-tech@lists.wikimedia.org