-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed linkset in favour of propertyPartition and void-ext
- Loading branch information
1 parent
aa6d482
commit 890670c
Showing
1 changed file
with
56 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,6 +84,7 @@ <h1 id="main">Dataset Descriptions: HCLS Community Profile</h1> | |
<dd>M. Scott Marshall, MAASTRO Clinic, The Netherlands <<a href="mailto:[email protected]">[email protected]</a>></dd> | ||
<dd>Joachim Baran, Stanford University, USA <<a href="mailto:[email protected]">[email protected]</a>></dd> | ||
<dt>Contributors:</dt> | ||
<dd>Vladimir Alexiev, OntoText, Bulgaria</dd> | ||
<dd>Peter Ansell, CSIRO, Australia <<a href="mailto:[email protected]">[email protected]</a>></dd> | ||
<dd>Gary D. Bader, The Donnelly Centre, University of Toronto, Canada <<a href="mailto:[email protected]">[email protected]</a>></dd> | ||
<dd>Asuka Bando, NBDC, Japan <<a href="mailto:[email protected]">[email protected]</a>></dd> | ||
|
@@ -107,7 +108,7 @@ <h1 id="main">Dataset Descriptions: HCLS Community Profile</h1> | |
<dd>Nick Juty, EMBL-EBI, UK <<a href="mailto:[email protected]">[email protected]</a>></dd> | ||
<dd>James Malone, EMBL-EBI, UK <<a href="mailto:[email protected]">[email protected]</a>></dd> | ||
<dd>Laurens Rietveld, VU University Amsterdam, The Netherlands <<a href="mailto:[email protected]">[email protected]</a>></dd> | ||
<dd>Sarala M. Wimalaratne, EMBL-EBI, UK <<a href="mailto:[email protected]">[email protected]</a>></dd> | ||
<dd>Sarala M. Wimalaratne, EMBL-EBI, UK <<a href="mailto:[email protected]">[email protected]</a>></dd> | ||
</dl> | ||
|
||
<p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 2014 <a href="http://www.w3.org/"><acronym title="World Wide Web Consortium">W3C</acronym></a><sup>®</sup> (<a href="http://www.csail.mit.edu/"><acronym title="Massachusetts Institute of Technology">MIT</acronym></a>, <a href="http://www.ercim.org/"><acronym title="European Research Consortium for Informatics and Mathematics">ERCIM</acronym></a>, <a href="http://www.keio.ac.jp/">Keio</a>, <a href="http://ev.buaa.edu.cn/">Beihang</a>), All Rights Reserved. W3C <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and <a href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a> rules apply.</p> | ||
|
@@ -223,7 +224,9 @@ <h2 id="conventions">3 Conventions</h2> | |
<tr><td><code>sd:</code></td> <td><code>http://www.w3.org/ns/sparql-service-description#</code></td> <td><a href="http://www.w3.org/TR/sparql11-service-description/">SPARQL 1.1 Service Description</a></td></tr> | ||
<tr><td><code>xsd:</code></td> <td><code>http://www.w3.org/2001/XMLSchema#</code></td> <td><a href="http://www.w3.org/TR/xmlschema11-2/">XML Schema</a></td></tr> | ||
<tr><td><code>void:</code></td> <td><code>http://www.w3.org/TR/void/</code></td> <td><a href="http://www.w3.org/TR/void/">Describing Linked Datasets with the VoID Vocabulary</a></td></tr> | ||
</table> | ||
<tr><td><code>void-ext:</code></td> <td><code>http://ldf.fi/void-ext</code></td> <td><a href="http://ldf.fi/void-ext">Extensions to the Vocabulary of Interlinked Datasets (VoID)</a></td></tr> | ||
|
||
</table> | ||
</div> | ||
|
||
<p>The letter sequence "###" is used to denote a placeholder for a positive integer (≥ 1) in examples. The integers that replace this surrogate are of type <a href="http://www.w3.org/TR/xmlschema11-2/#integer">xsd:integer</a>.</p> | ||
|
@@ -1423,7 +1426,7 @@ <h4>6.6.2 Enhanced Statistics</h4> | |
<p>SPARQL query:</p> | ||
|
||
<pre> | ||
SELECT ?class (COUNT(?s) AS ?count ) { ?s a ?class } GROUP BY ?class | ||
SELECT ?class (COUNT(?s) AS ?count) { ?s a ?class } GROUP BY ?class | ||
</pre> | ||
|
||
<p>To specify the <strong>properties and their frequency</strong> in the dataset:</p> | ||
|
@@ -1442,70 +1445,83 @@ <h4>6.6.2 Enhanced Statistics</h4> | |
SELECT ?p (COUNT(?p) AS ?count ) { ?s ?p ?o } GROUP BY ?p | ||
</pre> | ||
|
||
<p>To specify the <strong>properties and the number of unique objects linked to the property</strong> in the dataset:</p> | ||
<p>SPARQL query:</p> | ||
|
||
<pre> | ||
SELECT (COUNT(DISTINCT ?s) AS ?scount) ?p (COUNT(DISTINCT ?o) AS ?ocount) { ?s ?p ?o } GROUP BY ?p | ||
</pre> | ||
|
||
|
||
<p>To specify the <strong>properties and the number of unique typed subjects linked to the property</strong>in the dataset:</p> | ||
<pre> | ||
:rdfdataset | ||
void:subset [ | ||
a void:LinkSet ; | ||
void:linkPredicate <property-uri> ; | ||
void:objectsTarget [ | ||
void:class rdfs:Class ; | ||
void:entities "###"^^xsd:integer | ||
] | ||
] . | ||
void:propertyPartition [ | ||
void:property <property-uri> ; | ||
void:classPartition [ | ||
void:class <subject-class-uri> ; | ||
void:entities "###"^^xsd:integer ; | ||
] | ||
]. | ||
</pre> | ||
|
||
<p>SPARQL query:</p> | ||
<pre> | ||
SELECT (COUNT(DISTINCT ?s) AS ?scount) ?stype ?p { ?s ?p ?o . ?s a ?stype } GROUP BY ?p ?stype | ||
</pre> | ||
|
||
|
||
<p>To specify the <strong>properties and the number of unique typed objects linked to the property</strong> in the dataset:</p> | ||
<pre> | ||
SELECT ?p (COUNT(DISTINCT ?o ) AS ?count ) { ?s ?p ?o } GROUP BY ?p | ||
:rdfdataset | ||
void:propertyPartition [ | ||
void:property <property-uri> ; | ||
void-ext:objectClassPartition [ | ||
void:class <object-class-uri> ; | ||
void:entities "###"^^xsd:integer] | ||
]. | ||
</pre> | ||
<p>SPARQL query:</p> | ||
<pre> | ||
SELECT ?p ?otype (COUNT(DISTINCT ?o ) AS ?ocount ) { ?s ?p ?o . ?o a ?otype} GROUP BY ?p ?otype | ||
</pre> | ||
|
||
<p>To specify the <strong>properties and the number of unique literals</strong> in the dataset:</p> | ||
|
||
<pre> | ||
:rdfdataset | ||
void:subset [ | ||
a void:LinkSet ; | ||
void:linkPredicate <property-uri> ; | ||
void:objectsTarget [ | ||
void:propertyPartition [ | ||
void:property <property-uri> ; | ||
void-ext:objectClassPartition [ | ||
void:class rdfs:Literal; | ||
void:entities "###"^^xsd:integer | ||
] | ||
] . | ||
</pre> | ||
|
||
<p>SPARQL query:</p> | ||
|
||
<pre> | ||
SELECT ?p (COUNT(DISTINCT ?o ) AS ?count ) { ?s ?p ?o } GROUP BY ?p | ||
</pre> | ||
|
||
|
||
<p>To specify the number and list of <strong>unique subject types that are linked through a property to unique object types</strong> in the dataset:</p> | ||
|
||
<pre> | ||
:rdfdataset | ||
void:subset [ | ||
a void:LinkSet ; | ||
void:linkPredicate <property-uri> ; | ||
void:subjectsTarget [ | ||
void:class <subject-type-uri> ; | ||
void:entities "###"^^xsd:integer ; | ||
void:objectsTarget [ | ||
void:class <object-type-uri> ; | ||
void:entities "###"^^xsd:integer | ||
] | ||
] | ||
] . | ||
</pre> | ||
|
||
<p>SPARQL query:</p> | ||
|
||
<pre> | ||
SELECT (COUNT(DISTINCT ?s ) AS ?scount ) ?p (COUNT(DISTINCT ?o ) AS ?ocount ) { ?s ?p ?o } GROUP BY ?p | ||
</pre> | ||
|
||
void:propertyPartition [ | ||
void:property <property-uri> ; | ||
void:classPartition [ | ||
void:class <subject-class-uri> ; | ||
void:entities "###"^^xsd:integer ; | ||
]; | ||
void-ext:objectClassPartition [ | ||
void:class <object-class-uri> ; | ||
void:entities "###"^^xsd:integer] | ||
] | ||
] . | ||
</pre> | ||
|
||
|
||
|
||
|
||
<p>To specify the <strong>number and list of properties that link items from one dataset to another</strong>:</p> | ||
|
||
<pre> | ||
|