1
|
# TODO:
|
2
|
# 1. Complete retrieved information
|
3
|
# 2. Title can be a literal
|
4
|
# NOTE: includes software, dataset
|
5
|
|
6
|
DEFINE input:inference 'parthenos_rules'
|
7
|
|
8
|
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
|
9
|
PREFIX crmdig: <http://www.ics.forth.gr/isl/CRMdig/>
|
10
|
PREFIX crmpe: <http://parthenos.d4science.org/CRMext/CRMpe.rdfs/>
|
11
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
12
|
|
13
|
CONSTRUCT {
|
14
|
<${subjectURL}> crm:P1_is_identified_by ?title .
|
15
|
<${subjectURL}> crm:P3_has_note ?description .
|
16
|
<${subjectURL}> a ?type .
|
17
|
|
18
|
<${subjectURL}> crmpe:PP16_has_persistent_digital_object_part ?obj1 .
|
19
|
<${subjectURL}> crmpe:PP17_has_snapshot ?obj2 .
|
20
|
<${subjectURL}> crmpe:PP18_has_digital_object_part ?obj3 .
|
21
|
|
22
|
<${subjectURL}> crmpe:PP19_has_persistent_software_part <${subjectURL}>w1 .
|
23
|
<${subjectURL}> crmpe:PP21_has_software_part <${subjectURL}>w2 .
|
24
|
<${subjectURL}> crmpe:PP22_has_release <${subjectURL}>w3 .
|
25
|
|
26
|
<${subjectURL}> crmpe:PP23i_is_dataset_part_of ?container .
|
27
|
<${subjectURL}> crm:P129_is_about ?about .
|
28
|
<${subjectURL}> crmpe:PP20_has_persistent_dataset_part ?d1 .
|
29
|
<${subjectURL}> crmpe:PP39_is_metadata_for ?d2 .
|
30
|
<${subjectURL}> crmpe:PP23_has_dataset_part ?d3 .
|
31
|
<${subjectURL}> crmpe:PP24_has_dataset_snapshot ?d4 .
|
32
|
<${subjectURL}> crmpe:PP41_is_index_of ?d5 .
|
33
|
|
34
|
}
|
35
|
WHERE {
|
36
|
{
|
37
|
<${subjectURL}> a crmdig:D1_Digital_Object .
|
38
|
<${subjectURL}> a ?type .
|
39
|
}
|
40
|
OPTIONAL {
|
41
|
<${subjectURL}> crm:P1_is_identified_by ?titleRes .
|
42
|
?titleRes rdfs:label ?title .
|
43
|
}
|
44
|
OPTIONAL{
|
45
|
<${subjectURL}> crm:P3_has_note ?description .
|
46
|
}
|
47
|
|
48
|
OPTIONAL{<${subjectURL}> crmpe:PP16_has_persistent_digital_object_part ?obj1 .}
|
49
|
OPTIONAL{<${subjectURL}> crmpe:PP17_has_snapshot ?obj2 .}
|
50
|
OPTIONAL{<${subjectURL}> crmpe:PP18_has_digital_object_part ?obj3 .}
|
51
|
|
52
|
OPTIONAL{<${subjectURL}> crmpe:PP19_has_persistent_software_part <${subjectURL}>w1 .}
|
53
|
OPTIONAL{<${subjectURL}> crmpe:PP21_has_software_part <${subjectURL}>w2 .}
|
54
|
OPTIONAL{<${subjectURL}> crmpe:PP22_has_release <${subjectURL}>w3 .}
|
55
|
|
56
|
OPTIONAL{<${subjectURL}> crmpe:PP23i_is_dataset_part_of ?container .}
|
57
|
OPTIONAL{<${subjectURL}> crm:P129_is_about ?about .}
|
58
|
OPTIONAL{<${subjectURL}> crmpe:PP20_has_persistent_dataset_part ?d1 .}
|
59
|
OPTIONAL{<${subjectURL}> crmpe:PP39_is_metadata_for ?d2 .}
|
60
|
OPTIONAL{<${subjectURL}> crmpe:PP23_has_dataset_part ?d3 .}
|
61
|
OPTIONAL{<${subjectURL}> crmpe:PP24_has_dataset_snapshot ?d4 .}
|
62
|
OPTIONAL{<${subjectURL}> crmpe:PP41_is_index_of ?d5 .}
|
63
|
}
|