- From: Sarven Capadisli <info@csarven.ca>
- Date: Wed, 12 Jun 2024 12:32:26 +0200
- To: public-solid@w3.org
On 2024-06-03 18:00, Sarven Capadisli wrote: > Are you entertained? Here are some more basic queries on significant units of information from authoritative/source data at the speed of light: ## Audience https://sparql.org/sparql?query=PREFIX+schema%3A+%3Chttp%3A%2F%2Fschema.org%2F%3E%0D%0ASELECT+%3Fdocument+%3Faudience%0D%0AFROM+%3Chttp%3A%2F%2Frdf.greggkellogg.net%2Fdistiller%3Fcommand%3Dserialize%26format%3Drdfa%26output_format%3Dturtle%26url%3Dhttps%3A%252F%252Fsolidproject.org%252FTR%252Fprotocol%26raw%3E%0D%0AFROM+%3Chttp%3A%2F%2Frdf.greggkellogg.net%2Fdistiller%3Fcommand%3Dserialize%26format%3Drdfa%26output_format%3Dturtle%26url%3Dhttps%3A%252F%252Fsolidproject.org%252FTR%252Fwac%26raw%3E%0D%0AFROM+%3Chttp%3A%2F%2Frdf.greggkellogg.net%2Fdistiller%3Fcommand%3Dserialize%26format%3Drdfa%26output_format%3Dturtle%26url%3Dhttps%3A%252F%252Fsolidproject.org%252FTR%252Fnotifications-protocol%26raw%3E%0D%0AFROM+%3Chttp%3A%2F%2Frdf.greggkellogg.net%2Fdistiller%3Fcommand%3Dserialize%26format%3Drdfa%26output_format%3Dturtle%26url%3Dhttps%3A%252F%252Fsolidproject.org%252FED%252Fqa%26raw%3E%0D%0AFROM+%3Chttp%3A%2F%2Frdf.greggkellogg.net%2Fdistiller%3Fcommand%3Dserialize%26format%3Drdfa%26output_format%3Dturtle%26url%3Dhttps%3A%252F%252Fsolid.github.io%252Fwebid-profile%252F%26raw%3E%0D%0AWHERE%7B%0D%0A%3Fdocument+schema%3Aaudience+%3Faudience+.%0D%0A%7D&default-graph-uri=&output=xml&stylesheet=%2Fxml-to-html.xsl ``` PREFIX schema: <http://schema.org/> SELECT ?document ?audience FROM <http://rdf.greggkellogg.net/distiller?command=serialize&format=rdfa&output_format=turtle&url=https:%2F%2Fsolidproject.org%2FTR%2Fprotocol&raw> FROM <http://rdf.greggkellogg.net/distiller?command=serialize&format=rdfa&output_format=turtle&url=https:%2F%2Fsolidproject.org%2FTR%2Fwac&raw> FROM <http://rdf.greggkellogg.net/distiller?command=serialize&format=rdfa&output_format=turtle&url=https:%2F%2Fsolidproject.org%2FTR%2Fnotifications-protocol&raw> FROM <http://rdf.greggkellogg.net/distiller?command=serialize&format=rdfa&output_format=turtle&url=https:%2F%2Fsolidproject.org%2FED%2Fqa&raw> FROM <http://rdf.greggkellogg.net/distiller?command=serialize&format=rdfa&output_format=turtle&url=https:%2F%2Fsolid.github.io%2Fwebid-profile%2F&raw> WHERE{ ?document schema:audience ?audience . } ``` ## Classes of Products https://sparql.org/sparql?query=PREFIX+spec%3A+%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Fspec%23%3E%0D%0APREFIX+skos%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2004%2F02%2Fskos%2Fcore%23%3E%0D%0ASELECT+%3Fdocument+%3FproductClass+%3FrelatedProductClass+%3FbroaderProductClass%0D%0AFROM+%3Chttp%3A%2F%2Frdf.greggkellogg.net%2Fdistiller%3Fcommand%3Dserialize%26format%3Drdfa%26output_format%3Dturtle%26url%3Dhttps%3A%252F%252Fsolidproject.org%252FTR%252Fprotocol%26raw%3E%0D%0AFROM+%3Chttp%3A%2F%2Frdf.greggkellogg.net%2Fdistiller%3Fcommand%3Dserialize%26format%3Drdfa%26output_format%3Dturtle%26url%3Dhttps%3A%252F%252Fsolidproject.org%252FTR%252Fwac%26raw%3E%0D%0AFROM+%3Chttp%3A%2F%2Frdf.greggkellogg.net%2Fdistiller%3Fcommand%3Dserialize%26format%3Drdfa%26output_format%3Dturtle%26url%3Dhttps%3A%252F%252Fsolidproject.org%252FTR%252Fnotifications-protocol%26raw%3E%0D%0AFROM+%3Chttp%3A%2F%2Frdf.greggkellogg.net%2Fdistiller%3Fcommand%3Dserialize%26format%3Drdfa%26output_format%3Dturtle%26url%3Dhttps%3A%252F%252Fsolidproject.org%252FED%252Fqa%26raw%3E%0D%0AFROM+%3Chttp%3A%2F%2Frdf.greggkellogg.net%2Fdistiller%3Fcommand%3Dserialize%26format%3Drdfa%26output_format%3Dturtle%26url%3Dhttps%3A%252F%252Fsolid.github.io%252Fwebid-profile%252F%26raw%3E%0D%0AWHERE%7B%0D%0A++OPTIONAL+%7B%0D%0A++++%3Fdocument+spec%3AclassesOfProducts+%5B%0D%0A++++++skos%3AhasTopConcept+%3FproductClass%0D%0A++++%5D+.%0D%0A++%7D%0D%0A++OPTIONAL+%7B%0D%0A++++%3FproductClass+skos%3ArelatedMatch+%3FrelatedProductClass+.%0D%0A++%7D%0D%0A++OPTIONAL+%7B%0D%0A++++%3FproductClass+skos%3AbroadMatch+%3FbroaderProductClass+.%0D%0A++%7D%0D%0A%7D&default-graph-uri=&output=xml&stylesheet=%2Fxml-to-html.xsl ``` PREFIX spec: <http://www.w3.org/ns/spec#> PREFIX skos: <http://www.w3.org/2004/02/skos/core#> SELECT ?document ?productClass ?relatedProductClass ?broaderProductClass FROM <http://rdf.greggkellogg.net/distiller?command=serialize&format=rdfa&output_format=turtle&url=https:%2F%2Fsolidproject.org%2FTR%2Fprotocol&raw> FROM <http://rdf.greggkellogg.net/distiller?command=serialize&format=rdfa&output_format=turtle&url=https:%2F%2Fsolidproject.org%2FTR%2Fwac&raw> FROM <http://rdf.greggkellogg.net/distiller?command=serialize&format=rdfa&output_format=turtle&url=https:%2F%2Fsolidproject.org%2FTR%2Fnotifications-protocol&raw> FROM <http://rdf.greggkellogg.net/distiller?command=serialize&format=rdfa&output_format=turtle&url=https:%2F%2Fsolidproject.org%2FED%2Fqa&raw> FROM <http://rdf.greggkellogg.net/distiller?command=serialize&format=rdfa&output_format=turtle&url=https:%2F%2Fsolid.github.io%2Fwebid-profile%2F&raw> WHERE{ OPTIONAL { ?document spec:classesOfProducts [ skos:hasTopConcept ?productClass ] . } OPTIONAL { ?productClass skos:relatedMatch ?relatedProductClass . } OPTIONAL { ?productClass skos:broadMatch ?broaderProductClass . } } ``` ## Contributors https://sparql.org/sparql?query=PREFIX+schema%3A+%3Chttp%3A%2F%2Fschema.org%2F%3E%0D%0ASELECT+%3Fdocument+%3Feditor+%3Fauthor+%3Fcontributor%0D%0AFROM+%3Chttp%3A%2F%2Frdf.greggkellogg.net%2Fdistiller%3Fcommand%3Dserialize%26format%3Drdfa%26output_format%3Dturtle%26url%3Dhttps%3A%252F%252Fsolidproject.org%252FTR%252Fprotocol%26raw%3E%0D%0AFROM+%3Chttp%3A%2F%2Frdf.greggkellogg.net%2Fdistiller%3Fcommand%3Dserialize%26format%3Drdfa%26output_format%3Dturtle%26url%3Dhttps%3A%252F%252Fsolidproject.org%252FTR%252Fwac%26raw%3E%0D%0AFROM+%3Chttp%3A%2F%2Frdf.greggkellogg.net%2Fdistiller%3Fcommand%3Dserialize%26format%3Drdfa%26output_format%3Dturtle%26url%3Dhttps%3A%252F%252Fsolidproject.org%252FTR%252Fnotifications-protocol%26raw%3E%0D%0AFROM+%3Chttp%3A%2F%2Frdf.greggkellogg.net%2Fdistiller%3Fcommand%3Dserialize%26format%3Drdfa%26output_format%3Dturtle%26url%3Dhttps%3A%252F%252Fsolidproject.org%252FED%252Fqa%26raw%3E%0D%0AFROM+%3Chttp%3A%2F%2Frdf.greggkellogg.net%2Fdistiller%3Fcommand%3Dserialize%26format%3Drdfa%26output_format%3Dturtle%26url%3Dhttps%3A%252F%252Fsolid.github.io%252Fwebid-profile%252F%26raw%3E%0D%0AWHERE%7B%0D%0A++%7B%0D%0A++++%3Fdocument+schema%3Aeditor+%3Feditor+.%0D%0A++%7D%0D%0A++UNION%0D%0A++%7B%0D%0A++++%3Fdocument+schema%3Aauthor+%3Fauthor+.%0D%0A++%7D%0D%0A++UNION%0D%0A++%7B%0D%0A++++%3Fdocument+schema%3Acontributor+%3Fcontributor+.%0D%0A++%7D%0D%0A%7D%0D%0AORDER+BY+%3Fdocument&default-graph-uri=&output=xml&stylesheet=%2Fxml-to-html.xsl ``` PREFIX schema: <http://schema.org/> SELECT ?document ?editor ?author ?contributor FROM <http://rdf.greggkellogg.net/distiller?command=serialize&format=rdfa&output_format=turtle&url=https:%2F%2Fsolidproject.org%2FTR%2Fprotocol&raw> FROM <http://rdf.greggkellogg.net/distiller?command=serialize&format=rdfa&output_format=turtle&url=https:%2F%2Fsolidproject.org%2FTR%2Fwac&raw> FROM <http://rdf.greggkellogg.net/distiller?command=serialize&format=rdfa&output_format=turtle&url=https:%2F%2Fsolidproject.org%2FTR%2Fnotifications-protocol&raw> FROM <http://rdf.greggkellogg.net/distiller?command=serialize&format=rdfa&output_format=turtle&url=https:%2F%2Fsolidproject.org%2FED%2Fqa&raw> FROM <http://rdf.greggkellogg.net/distiller?command=serialize&format=rdfa&output_format=turtle&url=https:%2F%2Fsolid.github.io%2Fwebid-profile%2F&raw> WHERE{ { ?document schema:editor ?editor . } UNION { ?document schema:author ?author . } UNION { ?document schema:contributor ?contributor . } } ORDER BY ?document ``` My SPARQL is rusty.. What interesting/useful queries can you come up with? What useful information is missing at source that you would like to see? -Sarven https://csarven.ca/#i
Received on Wednesday, 12 June 2024 10:32:33 UTC