Changes between Version 3 and Version 4 of CMD2RDF/Queries


Ignore:
Timestamp:
05/21/14 09:49:15 (10 years ago)
Author:
xnrn@gmx.net
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CMD2RDF/Queries

    v3 v4  
    66== Profiles and Components - Schemas
    77
    8 List all profiles:
     8List all profiles with their id and number of instances:
    99{{{
    1010#!sql
    1111PREFIX cmdm: <http://www.clarin.eu/cmd/general.rdf#>
    12 SELECT ?p WHERE { ?p rdfs:subClassOf cmdm:Profile }
     12
     13SELECT SAMPLE(?p) as  ?profile SAMPLE(?pid) as ?pid COUNT(?i) as ?count WHERE { ?p rdfs:subClassOf cmdm:Profile.
     14?p dcterms:identifier ?pid.
     15?i a ?p.
     16 }
     17GROUP by ?p ?pid
     18ORDER BY DESC(?count)
    1319}}}
    14 [[http://clarin.aac.ac.at/isparql/view/?query=PREFIX%20cmdm%3A%20%3Chttp%3A%2F%2Fwww.clarin.eu%2Fcmd%2Fgeneral.rdf%23%3E%0A%0ASELECT%20%3Fp%20WHERE%20{%20%3Fp%20rdfs%3AsubClassOf%20cmdm%3AProfile%20}&endpoint=%2Fsparql&maxrows=50&timeout=&default-graph-uri=&view=1&amode=0&raw_iris=true|​result in clarin.aac.ac.at-virtuoso]]
     20[[http://clarin.aac.ac.at/isparql/view/?query=PREFIX%20cmdm%3A%20%3Chttp%3A%2F%2Fwww.clarin.eu%2Fcmd%2Fgeneral.rdf%23%3E%0A%0A%0ASELECT%20SAMPLE%28%3Fp%29%20as%20%20%3Fprofile%20SAMPLE%28%3Fpid%29%20as%20%3Fpid%20COUNT%28%3Fi%29%20as%20%3Fcount%20WHERE%20{%20%3Fp%20rdfs%3AsubClassOf%20cmdm%3AProfile.%20%0A%3Fp%20dcterms%3Aidentifier%20%3Fpid.%0A%3Fi%20a%20%3Fp.%0A%20}%0AGROUP%20by%20%3Fp%20%3Fpid%0AORDER%20BY%20DESC%28%3Fcount%29&endpoint=%2Fsparql&maxrows=50&timeout=&default-graph-uri=&view=1&amode=0&raw_iris=false|result in clarin.aac.ac.at-virtuoso]],
     21[[http://clarin.aac.ac.at/isparql/view/?query=PREFIX%20cmdm%3A%20%3Chttp%3A%2F%2Fwww.clarin.eu%2Fcmd%2Fgeneral.rdf%23%3E%0A%0ASELECT%20%3Fp%20WHERE%20{%20%3Fp%20rdfs%3AsubClassOf%20cmdm%3AProfile%20}&endpoint=%2Fsparql&maxrows=50&timeout=&default-graph-uri=&view=1&amode=0&raw_iris=true|​just profiles]]
    1522
    1623List the `cmdm:contains` relation pairs,