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}> crmpe:PP4i_is_object_hosted_by ?hoster1 .
|
17
|
<${subjectURL}> crmpe:PP6i_is_digital_object_hosted_by ?hoster2 .
|
18
|
<${subjectURL}> crmpe:PP7i_is_software_object_hosted_by ?hoster3 .
|
19
|
<${subjectURL}> crmpe:PP8i_is_dataset_hosted_by ?hoster4 .
|
20
|
|
21
|
<${subjectURL}> crmpe:PP32i_is_curated_by ?curator1 .
|
22
|
<${subjectURL}> crmpe:PP11i_is_volatile_digital_object_curated_by ?curator2 .
|
23
|
<${subjectURL}> crmpe:PP12i_is_volatile_software_curated_by ?curator3 .
|
24
|
<${subjectURL}> crmpe:PP13i_is_volatile_dataset_curated_by ?curator4 .
|
25
|
|
26
|
<${subjectURL}> crmpe:PP16_has_persistent_digital_object_part ?obj1 .
|
27
|
<${subjectURL}> crmpe:PP17_has_snapshot ?obj2 .
|
28
|
<${subjectURL}> crmpe:PP18_has_digital_object_part ?obj3 .
|
29
|
|
30
|
<${subjectURL}> crmpe:PP19_has_persistent_software_part ?sw1 .
|
31
|
<${subjectURL}> crmpe:PP21_has_software_part ?sw2 .
|
32
|
<${subjectURL}> crmpe:PP22_has_release ?sw3 .
|
33
|
|
34
|
<${subjectURL}> crmpe:PP23i_is_dataset_part_of ?container .
|
35
|
<${subjectURL}> crmpe:PP23_has_dataset_part ?d3 .
|
36
|
|
37
|
<${subjectURL}> crmpe:PP20_has_persistent_dataset_part ?d1 .
|
38
|
<${subjectURL}> crmpe:PP39_is_metadata_for ?d2 .
|
39
|
|
40
|
<${subjectURL}> crmpe:PP24_has_dataset_snapshot ?d4 .
|
41
|
<${subjectURL}> crmpe:PP41_is_index_of ?d5 .
|
42
|
|
43
|
<${subjectURL}> crm:P129_is_about ?about .
|
44
|
?about a ?aboutType .
|
45
|
?about rdfs:label ?aboutLabel .
|
46
|
|
47
|
<${subjectURL}> crmpe:PP31_uses_curation_plan ?curationplan .
|
48
|
}
|
49
|
WHERE {
|
50
|
{
|
51
|
<${subjectURL}> a crmdig:D1_Digital_Object .
|
52
|
<${subjectURL}> a ?type .
|
53
|
}
|
54
|
OPTIONAL {
|
55
|
<${subjectURL}> crm:P1_is_identified_by ?titleRes .
|
56
|
?titleRes rdfs:label ?title .
|
57
|
}
|
58
|
OPTIONAL{
|
59
|
<${subjectURL}> crm:P3_has_note ?description .
|
60
|
}
|
61
|
OPTIONAL{
|
62
|
<${subjectURL}> rdfs:label ?label .
|
63
|
}
|
64
|
|
65
|
OPTIONAL{ <${subjectURL}> crmpe:PP4i_is_object_hosted_by ?hoster1 .}
|
66
|
OPTIONAL{ <${subjectURL}> crmpe:PP6i_is_digital_object_hosted_by ?hoster2 .}
|
67
|
OPTIONAL{ <${subjectURL}> crmpe:PP7i_is_software_object_hosted_by ?hoster3 . }
|
68
|
OPTIONAL{ <${subjectURL}> crmpe:PP8i_is_dataset_hosted_by ?hoster4 . }
|
69
|
|
70
|
OPTIONAL{ <${subjectURL}> crmpe:PP32i_is_curated_by ?curator1 .}
|
71
|
OPTIONAL{ <${subjectURL}> crmpe:PP11i_is_volatile_digital_object_curated_by ?curator2 .}
|
72
|
OPTIONAL{ <${subjectURL}> crmpe:PP12i_is_volatile_software_curated_by ?curator3 .}
|
73
|
OPTIONAL{ <${subjectURL}> crmpe:PP13i_is_volatile_dataset_curated_by ?curator4 .}
|
74
|
|
75
|
OPTIONAL{<${subjectURL}> crmpe:PP16_has_persistent_digital_object_part ?obj1 .}
|
76
|
OPTIONAL{<${subjectURL}> crmpe:PP17_has_snapshot ?obj2 .}
|
77
|
OPTIONAL{<${subjectURL}> crmpe:PP18_has_digital_object_part ?obj3 .}
|
78
|
|
79
|
OPTIONAL{<${subjectURL}> crmpe:PP19_has_persistent_software_part ?sw1 .}
|
80
|
OPTIONAL{<${subjectURL}> crmpe:PP21_has_software_part ?sw2 .}
|
81
|
OPTIONAL{<${subjectURL}> crmpe:PP22_has_release ?sw3 .}
|
82
|
|
83
|
OPTIONAL{<${subjectURL}> crmpe:PP23i_is_dataset_part_of ?container .}
|
84
|
OPTIONAL{
|
85
|
<${subjectURL}> crm:P129_is_about ?about .
|
86
|
?about a ?aboutType .
|
87
|
?about rdfs:label ?aboutLabel .
|
88
|
}
|
89
|
|
90
|
OPTIONAL{<${subjectURL}> crmpe:PP20_has_persistent_dataset_part ?d1 .}
|
91
|
OPTIONAL{<${subjectURL}> crmpe:PP39_is_metadata_for ?d2 .}
|
92
|
OPTIONAL{<${subjectURL}> crmpe:PP23_has_dataset_part ?d3 .}
|
93
|
OPTIONAL{<${subjectURL}> crmpe:PP24_has_dataset_snapshot ?d4 .}
|
94
|
OPTIONAL{<${subjectURL}> crmpe:PP41_is_index_of ?d5 .}
|
95
|
OPTIONAL{<${subjectURL}> crmpe:PP31_uses_curation_plan ?curationplan .}
|
96
|
}
|