Project:SPARQL/examples: Difference between revisions

Line 994: Line 994:
   ?property
   ?property
   ?propertyType
   ?propertyType
   ?propertyLabel ?propertyAltLabel
   ?propertyLabel
  (group_concat(?propertyAltLabel; separator=" | ") as ?propertyAltLabels)
   ?propertyDescription
   ?propertyDescription


Line 1,002: Line 1,003:
               wikibase:propertyType ?propertyType . # datatype
               wikibase:propertyType ?propertyType . # datatype


   # add alternative labels (though there are few for properties)
   # add alternative labels if present (can be multiple)
   OPTIONAL { ?property skos:altLabel ?propertyAltLabel . }  
   OPTIONAL { ?property skos:altLabel ?propertyAltLabel . }  


Line 1,018: Line 1,019:


}
}
group by ?property ?propertyLabel ?propertyType ?propertyDescription
order by ?propertyLabel
order by ?propertyLabel


579

edits