query-ff615c8e0e1210f16f7e90a99a6c9939

rq turtle/ttl

Properties of GoogleI am using the below query to get the properties of Google. But it doesn't return all the necessary information like the official websites and also returns only the preferred rank if it is present.

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX item: <http://www.wikidata.org/entity/Q95>
SELECT DISTINCT
?propUrl
?propLabel
(GROUP_CONCAT( DISTINCT ?valLabel; separator=";") AS ?valLabel)  
WHERE
{
   SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
    item: ?propUrl ?valUrl .
    ?property ?ref ?propUrl .
    ?property rdf:type wikibase:Property .
    ?property rdfs:label ?propLabel.

    ?valUrl rdfs:label ?valLabel
    FILTER (LANG(?valLabel) = 'en') .
    FILTER (lang(?propLabel) = 'en' )
}
GROUP BY ?propUrl ?propLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?propLabel"):::projected v3("?propUrl"):::projected v5("?property") v6("?ref") v7("?valLabel"):::projected v4("?valUrl") c3(["bd:serviceParam"]):::iri c7(["wikibase:Property"]):::iri c5([http://www.wikidata.org/entity/Q95]):::iri c1(["en"]):::literal f0[["?propLabel = 'en'"]] f0 --> v1 f1[["?valLabel = 'en'"]] f1 --> v7 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c3 --"wikibase:language"--> c1 end c5 -->v3--> v4 v5 -->v6--> v3 v5 --"a"--> c7 v5 --"rdfs:label"--> v1 v4 --"rdfs:label"--> v7 bind3[/"?valLabel"/] v7 --o bind3 bind3 --as--o v7