-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcount-software-with-at-least-one-input-or-output.rq
33 lines (29 loc) · 1.52 KB
/
count-software-with-at-least-one-input-or-output.rq
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
prefix obo: <http://purl.obolibrary.org/obo/>
select (count (distinct ?x) as ?numberSoftwareWithAtLeastOneInputOrOutputObject)
from <http://www.pitt.edu/obc/ide/apollo-sv>
from <http://www.pitt.edu/obc/ide/classes-and-indexing-instances>
from <http://www.pitt.edu/obc/ide/article-instances>
from <http://www.pitt.edu/obc/ide/article-deleted-instances>
from <http://ide.obc.io/auth>
from <http://www.pitt.edu/obc/mdc/content>
where {
{
#software must be in MDC
<http://www.pitt.edu/obc/IDE_ARTICLES_12000070095> obo:BFO_0000174 ?x .
?x rdf:type ?softwareOrSubclass .
?softwareOrSubclass rdfs:subClassOf* obo:IAO_0000010 .
?v rdf:type obo:APOLLO_SV_00000525 . #v is executable
?u rdf:type obo:APOLLO_SV_00000524 . #u is compiling
?u obo:OBI_0000293 ?x . #compiling has source code as input
?u obo:OBI_0000299 ?v . #compiling has executable as output
?parsingOrEncodingPlan obo:BFO_0000050 ?v . #data parsing or encoding plan specification is part of executable
?dataParsingOrEncoding obo:OBI_0000417 ?parsingOrEncodingPlan . #parsing or encoding achieves parsing plan objective
?dataParsingOrEncoding obo:OBI_0000417 ?formatSpec . #parsing or encoding achieves spec objective
?formatSpec rdf:type obo:IAO_0000098 . #spec is in an instance of data format
#?formatSpec rdfs:label ?formatSpecLabel
}
#filter out punned individuals
FILTER ( ?x != obo:IAO_0000010 )
FILTER ( ?x != ?softwareOrSubclass )
#FILTER ( ?softwareOrSubclass != obo:APOLLO_SV_00000525 )
}