Query with SPARQL¶
Action: Search for organizations whose name contains the string "Systems", and apply SPARQL to the results to display the infotons' URIs, and the organization names and addresses.
Curl command:
curl -X POST "<cm-well-host>/_sp?format=ascii" -H "Content-Type:text/plain" --data-binary @inputfile.txt
Input file contents:
PATHS
/permid.org?op=search&qp=CommonName.mdaas:Systems&with-data
SPARQL
SELECT * WHERE {
?Infoton <http://ont.thomsonreuters.com/mdaas/CommonName> ?Name.
?Infoton <http://ont.thomsonreuters.com/mdaas/headquartersCommonAddress> ?Address.
}
Response:
--------------------------------------------------------------------------------------------------------------------------------------------------------------
| Infoton | Name | Address|
==============================================================================================================================================================
| <http://permid.org/1-5044348019> | "Tiller Systems SAS" | "France\n" |
| <http://permid.org/1-5048323276> | "Expert Systems Holdings Ltd" | "17/F., AXA Tower, Landmark East, 100 How Ming Street, Kwun Tong, Kowloon\nHong Kong\n" |
| <http://permid.org/1-5050714197> | "Keyless Systems Ltd" | "Israel\n" |
--------------------------------------------------------------------------------------------------------------------------------------------------------------