1
|
# NOTE: includes software, dataset
|
2
|
|
3
|
DEFINE input:inference 'parthenos_rules'
|
4
|
|
5
|
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
|
6
|
PREFIX crmdig: <http://www.ics.forth.gr/isl/CRMdig/>
|
7
|
PREFIX crmpe: <http://parthenos.d4science.org/CRMext/CRMpe.rdfs/>
|
8
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
9
|
|
10
|
CONSTRUCT {
|
11
|
<${subjectURL}> crm:P1_is_identified_by ?title .
|
12
|
<${subjectURL}> crm:P3_has_note ?description .
|
13
|
<${subjectURL}> a ?type .
|
14
|
<${subjectURL}> rdfs:label ?label .
|
15
|
|
16
|
<${subjectURL}> crm:P129_is_about ?about .
|
17
|
?about a ?aboutType .
|
18
|
?about rdfs:label ?aboutLabel .
|
19
|
|
20
|
<${subjectURL}> crm:P2_has_type ?e55Type .
|
21
|
?e55Type rdfs:label ?e55Type .
|
22
|
|
23
|
<${subjectURL}> crmpe:PP2_provided_by ?provider .
|
24
|
?provider crm:P1_is_identified_by ?providerTitle .
|
25
|
?provider crm:P3_has_note ?providerDescr .
|
26
|
|
27
|
<${subjectURL}> crmpe:PP7i_is_software_object_hosted_by ?host .
|
28
|
<${subjectURL}> crmpe:PP32i_is_curated_by ?curator .
|
29
|
|
30
|
<${subjectURL}> crmpe:PP17_has_snapshot ?obj2 .
|
31
|
<${subjectURL}> crmpe:PP19_has_persistent_software_part ?sw1 .
|
32
|
<${subjectURL}> crmpe:PP21_has_software_part ?sw2 .
|
33
|
<${subjectURL}> crmpe:PP22_has_release ?sw3 .
|
34
|
|
35
|
<${subjectURL}> crmpe:PP31_uses_curation_plan ?curationplan .
|
36
|
}
|
37
|
WHERE {
|
38
|
<${subjectURL}> a crmdig:D14_Software .
|
39
|
<${subjectURL}> a ?type .
|
40
|
{
|
41
|
<${subjectURL}> crm:P1_is_identified_by ?titleRes .
|
42
|
?titleRes rdfs:label ?title .
|
43
|
}
|
44
|
UNION{
|
45
|
<${subjectURL}> crm:P3_has_note ?description .
|
46
|
}
|
47
|
UNION{
|
48
|
<${subjectURL}> rdfs:label ?label .
|
49
|
}
|
50
|
UNION {
|
51
|
<${subjectURL}> crm:P2_has_type ?e55Type .
|
52
|
?e55Type rdfs:label ?e55Type .
|
53
|
}
|
54
|
UNION {
|
55
|
<${subjectURL}> crmpe:PP2_provided_by ?provider .
|
56
|
?provider crm:P1_is_identified_by ?providerTitleRes .
|
57
|
?providerTitleRes rdfs:label ?providerTitle .
|
58
|
}
|
59
|
UNION{
|
60
|
<${subjectURL}> crm:P129_is_about ?about .
|
61
|
?about a ?aboutType .
|
62
|
?about rdfs:label ?aboutLabel .
|
63
|
}
|
64
|
UNION {
|
65
|
<${subjectURL}> crmpe:PP2_provided_by ?provider .
|
66
|
?provider crm:P3_has_note ?providerDescr .
|
67
|
}
|
68
|
UNION{ <${subjectURL}> crmpe:PP7i_is_software_object_hosted_by ?host . }
|
69
|
UNION{ <${subjectURL}> crmpe:PP32i_is_curated_by ?curator .}
|
70
|
UNION{<${subjectURL}> crmpe:PP17_has_snapshot ?obj2 .}
|
71
|
UNION{<${subjectURL}> crmpe:PP19_has_persistent_software_part ?sw1 .}
|
72
|
UNION{<${subjectURL}> crmpe:PP21_has_software_part ?sw2 .}
|
73
|
UNION{<${subjectURL}> crmpe:PP22_has_release ?sw3 .}
|
74
|
UNION{<${subjectURL}> crmpe:PP31_uses_curation_plan ?curationplan .}
|
75
|
}
|