Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sphn-semantic-framework
SPHN Interoperability Framework
Commits
6001312e
Commit
6001312e
authored
Jul 22, 2021
by
Vasundra Touré
Browse files
updated statistical queries
parent
bd27670c
Changes
3
Hide whitespace changes
Inline
Side-by-side
quality_assurance/statistics/QC00010-count-sphn-distinct-concepts.rq
View file @
6001312e
...
...
@@ -5,14 +5,14 @@ PREFIX resource:<https://biomedit.ch/rdf/sphn-resource/>
PREFIX
xsd:<http://www.w3.org/2001/XMLSchema#>
PREFIX
psss:<https://biomedit.ch/rdf/sphn-ontology/psss#>
PREFIX
spo:<https://biomedit.ch/rdf/sphn-ontology/spo#>
PREFIX
frailty:<https://biomedit.ch/rdf/sphn-ontology/frailty#>
SELECT
?concept
(
COUNT
(
?resource
)
AS
?sphn_concepts_resources
)
(
count
(
distinct
?subject
)
as
?subject_cnt
)
(
count
(
distinct
?case
)
as
?case_cnt
)
(
count
(
distinct
?provider
)
as
?provider_cnt
)
WHERE
{
{
?concept
rdfs:
subClassOf
+
sphn:
SPHNConcept
}
UNION
{
?concept
rdfs:
subClassOf
+
psss:
SPHN
Concept
}
UNION
{
?concept
rdfs:
subClassOf
+
spo:
SP
HNConcept
}
UNION
{
?concept
rdfs:
subClassOf
+
frailty:
SPHN
Concept
}
.
{
?concept
rdfs:
subClassOf
+
sphn:
SPHNConcept
}
UNION
{
?concept
rdfs:
subClassOf
+
psss:
PSSS
Concept
}
UNION
{
?concept
rdfs:
subClassOf
+
spo:
SP
O
Concept
}
.
?resource
a
?concept
.
optional
{
?resource
sphn:
hasDataProviderInstitute
?provider
}
optional
{
?resource
sphn:
hasSubjectPseudoIdentifier
?subject
}
...
...
@@ -22,4 +22,4 @@ WHERE {
}
group
by
?concept
order
by
desc
(
?sphn_concepts_resources
)
#Counts the number of SPHN concepts
\ No newline at end of file
#Counts the number of SPHN concepts
quality_assurance/statistics/QC00012-count-sphn-attributes.rq
View file @
6001312e
...
...
@@ -11,8 +11,8 @@ SELECT ?concept ?attribute ?range (COUNT(distinct ?value) AS ?sphn_objects_count
(
MIN
(
?value
)
AS
?min_value
)
(
MAX
(
?value
)
AS
?max_value
)
(
AVG
(
?value
)
AS
?avg_value
)
WHERE
{
optional
{
?attribute
rdfs:
range
?range
}
{
?concept
rdfs:
subClassOf
+
sphn:
SPHNConcept
}
UNION
{
?concept
rdfs:
subClassOf
+
psss:
SPHN
Concept
}
UNION
{
?concept
rdfs:
subClassOf
+
spo:
SP
HNConcept
}
UNION
{
?concept
rdfs:
subClassOf
+
frailty:
SPHN
Concept
}
.
{
?attribute
rdfs:
subPropertyOf
sphn:
SPHNAttributeDatatype
}
UNION
{
?attribute
rdfs:
subPropertyOf
spo:
SP
HN
AttributeDatatype
}
UNION
{
?attribute
rdfs:
subPropertyOf
psss:
SPHN
AttributeDatatype
}
.
{
?concept
rdfs:
subClassOf
+
sphn:
SPHNConcept
}
UNION
{
?concept
rdfs:
subClassOf
+
psss:
PSSS
Concept
}
UNION
{
?concept
rdfs:
subClassOf
+
spo:
SP
O
Concept
}
.
{
?attribute
rdfs:
subPropertyOf
sphn:
SPHNAttributeDatatype
}
UNION
{
?attribute
rdfs:
subPropertyOf
spo:
SP
O
AttributeDatatype
}
UNION
{
?attribute
rdfs:
subPropertyOf
psss:
PSSS
AttributeDatatype
}
.
?resource
a
?concept
.
?resource
?attribute
?value
.
}
group
by
?concept
?attribute
?range
...
...
quality_assurance/statistics/QC00020-count-other-classes-not-in-ontology.rq
View file @
6001312e
...
...
@@ -5,13 +5,12 @@ PREFIX resource:<https://biomedit.ch/rdf/sphn-resource/>
PREFIX
xsd:<http://www.w3.org/2001/XMLSchema#>
PREFIX
psss:<https://biomedit.ch/rdf/sphn-ontology/psss#>
PREFIX
spo:<https://biomedit.ch/rdf/sphn-ontology/spo#>
PREFIX
frailty:<https://biomedit.ch/rdf/sphn-ontology/frailty#>
SELECT
distinct
(
?concept
as
?sphn_concepts_not_in_use
)
WHERE
{
{
?concept
rdfs:
subClassOf
+
sphn:
SPHNConcept
}
UNION
{
?concept
rdfs:
subClassOf
+
psss:
SPHN
Concept
}
UNION
{
?concept
rdfs:
subClassOf
+
spo:
SP
HNConcept
}
UNION
{
?concept
rdfs:
subClassOf
+
frailty:
SPHN
Concept
}
.
{
?concept
rdfs:
subClassOf
+
sphn:
SPHNConcept
}
UNION
{
?concept
rdfs:
subClassOf
+
psss:
PSSS
Concept
}
UNION
{
?concept
rdfs:
subClassOf
+
spo:
SP
O
Concept
}
.
filter
not
exists
{
?resource
a
?concept
}
.
}
#Lists all SPHN concepts that are not used in the given resource folder
\ No newline at end of file
#Lists all SPHN concepts that are not used in the given resource folder
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment