1
|
# TODO:
|
2
|
# 1. Complete retrieved information
|
3
|
# 2. Title can be a literal
|
4
|
# 4. Fix accesspoints (here and in the gcube registrator)?
|
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
|
<${subjectURL}> crmpe:PP2_provided_by ?provider .
|
18
|
?provider crm:P1_is_identified_by ?providerTitle .
|
19
|
?provider crm:P3_has_note ?providerDescr .
|
20
|
?provider crm:P76_has_contact_point ?contactpoint .
|
21
|
?contactpoint crm:P2_has_type ?contactpointType .
|
22
|
?contactpoint rdfs:label ?contactpointLabel .
|
23
|
?contactpointType rdfs:label ?contactpointTypeLabel .
|
24
|
<${subjectURL}> crmpe:PP28_has_designated_access_point ?accesspoint .
|
25
|
<${subjectURL}> crmpe:PP1i_is_currently_offered_by ?offerer .
|
26
|
<${subjectURL}> crmpe:PP45_has_competency ?competency .
|
27
|
<${subjectURL}> crmpe:PP4_hosts_object ?object .
|
28
|
<${subjectURL}> crmpe:PP31_uses_curation_plan ?curationplan .
|
29
|
<${subjectURL}> crmpe:PP32_curates ?object2 .
|
30
|
<${subjectURL}> crmpe:PP6_hosts_digital_object ?object3 .
|
31
|
<${subjectURL}> crmpe:PP7_hosts_software_object <${subjectURL}>w .
|
32
|
<${subjectURL}> crmpe:PP8_hosts_dataset ?dataset .
|
33
|
<${subjectURL}> crmpe:PP29_uses_access_protocol ?protocol .
|
34
|
<${subjectURL}> crmpe:PP47_has_protocol_type ?protocoltype .
|
35
|
<${subjectURL}> crmpe:PP48_uses_protocol_parameter ?protocolparam .
|
36
|
<${subjectURL}> crmpe:PP46_brokers_access_to ?brokered .
|
37
|
<${subjectURL}> crmpe:PP11_curates_volatile_digital_object ?curatedObj .
|
38
|
<${subjectURL}> crmpe:PP12_curates_volatile_software ?curatedSw .
|
39
|
<${subjectURL}> crmpe:PP13_curates_volatile_dataset ?curatedData .
|
40
|
<${subjectURL}> crmpe:PP15_delivers_on_request ?delivered .
|
41
|
|
42
|
}
|
43
|
WHERE {
|
44
|
<${subjectURL}> a crmpe:PE1_Service .
|
45
|
<${subjectURL}> a ?type .
|
46
|
OPTIONAL {
|
47
|
<${subjectURL}> crm:P1_is_identified_by ?titleRes .
|
48
|
?titleRes rdfs:label ?title .
|
49
|
}
|
50
|
OPTIONAL{
|
51
|
<${subjectURL}> crm:P3_has_note ?description .
|
52
|
}
|
53
|
OPTIONAL{
|
54
|
<${subjectURL}> crmpe:PP2_provided_by ?provider .
|
55
|
}
|
56
|
OPTIONAL {
|
57
|
<${subjectURL}> crmpe:PP2_provided_by ?provider .
|
58
|
?provider crm:P1_is_identified_by ?providerTitleRes .
|
59
|
?providerTitleRes rdfs:label ?providerTitle .
|
60
|
}
|
61
|
OPTIONAL {
|
62
|
<${subjectURL}> crmpe:PP2_provided_by ?provider .
|
63
|
?provider crm:P3_has_note ?providerDescr .
|
64
|
}
|
65
|
OPTIONAL {
|
66
|
<${subjectURL}> crmpe:PP2_provided_by ?provider .
|
67
|
?provider crm:P76_has_contact_point ?contactpoint .
|
68
|
?contactpoint rdfs:label ?contactpointLabel .
|
69
|
}
|
70
|
OPTIONAL {
|
71
|
<${subjectURL}> crmpe:PP2_provided_by ?provider .
|
72
|
?provider crm:P76_has_contact_point ?contactpoint .
|
73
|
?contactpoint crm:P2_has_type ?contactpointType .
|
74
|
?contactpointType rdfs:label ?contactpointTypeLabel .}
|
75
|
OPTIONAL {
|
76
|
<${subjectURL}> crmpe:PP28_has_designated_access_point ?accesspoint .}
|
77
|
OPTIONAL {
|
78
|
<${subjectURL}> crmpe:PP1i_is_currently_offered_by ?offerer .}
|
79
|
OPTIONAL {
|
80
|
<${subjectURL}> crmpe:PP45_has_competency ?competency .}
|
81
|
OPTIONAL {
|
82
|
<${subjectURL}> crmpe:PP4_hosts_object ?object .}
|
83
|
OPTIONAL {
|
84
|
<${subjectURL}> crmpe:PP31_uses_curation_plan ?curationplan .}
|
85
|
OPTIONAL {
|
86
|
<${subjectURL}> crmpe:PP32_curates ?object2 .}
|
87
|
OPTIONAL {
|
88
|
<${subjectURL}> crmpe:PP6_hosts_digital_object ?object3 .}
|
89
|
OPTIONAL {
|
90
|
<${subjectURL}> crmpe:PP7_hosts_software_object <${subjectURL}>w .}
|
91
|
OPTIONAL {
|
92
|
<${subjectURL}> crmpe:PP8_hosts_dataset ?dataset .}
|
93
|
OPTIONAL {
|
94
|
<${subjectURL}> crmpe:PP29_uses_access_protocol ?protocol .}
|
95
|
OPTIONAL {
|
96
|
<${subjectURL}> crmpe:PP47_has_protocol_type ?protocoltype .}
|
97
|
OPTIONAL {
|
98
|
<${subjectURL}> crmpe:PP48_uses_protocol_parameter ?protocolparam .}
|
99
|
OPTIONAL {
|
100
|
<${subjectURL}> crmpe:PP46_brokers_access_to ?brokered .}
|
101
|
OPTIONAL {
|
102
|
<${subjectURL}> crmpe:PP11_curates_volatile_digital_object ?curatedObj .}
|
103
|
OPTIONAL {
|
104
|
<${subjectURL}> crmpe:PP12_curates_volatile_software ?curatedSw .}
|
105
|
OPTIONAL {
|
106
|
<${subjectURL}> crmpe:PP13_curates_volatile_dataset ?curatedData .}
|
107
|
OPTIONAL {
|
108
|
<${subjectURL}> crmpe:PP15_delivers_on_request ?delivered .}
|
109
|
|
110
|
}
|
111
|
|