Project

General

Profile

1
DEFINE input:inference 'parthenos_rules'
2

    
3
CONSTRUCT {
4
<${subjectURL}> crm:P1_is_identified_by ?title .
5
<${subjectURL}> crm:P3_has_note ?description .
6
<${subjectURL}> rdfs:label ?label .
7
<${subjectURL}> a ?type .
8
<${subjectURL}> crm:P2_has_type ?atypeLabel .
9

    
10
<${subjectURL}> crmpe:PP2_provided_by ?provider .
11
?provider crm:P1_is_identified_by ?providerLabel .
12
?provider rdfs:label ?providerTitle .
13
?provider crm:P3_has_note ?providerDescr .
14
?provider crm:P76_has_contact_point ?contactpoint .
15
?contactpoint crm:P2_has_type ?contactpointType .
16
?contactpoint rdfs:label ?contactpointLabel .
17
?contactpointType rdfs:label ?contactpointTypeLabel .
18

    
19
<${subjectURL}> crmpe:PP4_hosts_object ?object .
20
<${subjectURL}> crmpe:PP6_hosts_digital_object ?object3 .
21
<${subjectURL}> crmpe:PP7_hosts_software_object ?sw .
22
<${subjectURL}> crmpe:PP8_hosts_dataset ?dataset .
23

    
24
<${subjectURL}> crmpe:PP28_has_designated_access_point ?accesspoint .
25
<${subjectURL}> crmpe:PP1i_is_currently_offered_by ?offerer .
26
<${subjectURL}> crmpe:PP45_has_competency ?competenceLabel .
27

    
28
<${subjectURL}> crmpe:PP31_uses_curation_plan ?curationplan .
29

    
30
<${subjectURL}> crmpe:PP29_uses_access_protocol ?protocol .
31
?protocol crmpe:PP47_has_protocol_type ?protocoltype .
32
?protocol crmpe:PP48_uses_protocol_parameter ?protocolparam .
33
<${subjectURL}> crmpe:PP46_brokers_access_to ?brokered .
34

    
35
<${subjectURL}> crmpe:PP32_curates ?object2 .
36
<${subjectURL}> crmpe:PP11_curates_volatile_digital_object ?curatedObj .
37
<${subjectURL}> crmpe:PP12_curates_volatile_software ?curatedSw .
38
<${subjectURL}> crmpe:PP13_curates_volatile_dataset ?curatedData .
39

    
40
<${subjectURL}> crmpe:PP15_delivers_on_request ?delivered .
41
<${subjectURL}> crmpe:PP42_has_declarative_time ?declTime .
42

    
43
<${subjectURL}> <availability> ?availabilityLabel .
44
<${subjectURL}> <activitytype> ?activitytypeLabel .
45

    
46
}
47
WHERE {
48
 <${subjectURL}> a crmpe:PE1_Service .
49
<${subjectURL}> a ?type .
50
{
51
 <${subjectURL}> crm:P1_is_identified_by ?titleRes .
52
 ?titleRes rdfs:label ?title .
53
}
54
UNION{
55
 <${subjectURL}> crm:P3_has_note ?description .
56
}
57
UNION{
58
 <${subjectURL}> rdfs:label ?label .
59
}
60
 UNION{
61
 <${subjectURL}> crm:P2_has_type ?atype .
62
 ?atype rdfs:label ?atypeLabel .
63
}
64
UNION{
65
 <${subjectURL}> crm:P2_has_type ?availability .
66
 ?availability rdfs:label ?availabilityLabel .
67
 FILTER(STRSTARTS(STR(?availability), "http://parthenos.d4science.org/handle/Parthenos/REG/Concept/availabilitytype"))
68
}
69
UNION{
70
 <${subjectURL}> crm:P2_has_type ?activitytype .
71
 ?activitytype rdfs:label ?activitytypeLabel .
72
 FILTER(STRSTARTS(STR(?activitytype), "http://parthenos.d4science.org/handle/Parthenos/REG/Concept/activitytype"))
73
}
74
UNION {
75
<${subjectURL}> crmpe:PP2_provided_by ?provider .
76
 ?provider crm:P1_is_identified_by ?providerTitleRes .
77
 ?providerTitleRes rdfs:label ?providerTitle .
78
}
79
UNION {
80
<${subjectURL}> crmpe:PP2_provided_by ?provider .
81
 ?provider crm:P3_has_note ?providerDescr .
82
}
83
UNION {
84
<${subjectURL}> crmpe:PP2_provided_by ?provider .
85
 ?provider rdfs:label ?providerLabel .
86
}
87
UNION {
88
<${subjectURL}> crmpe:PP2_provided_by ?provider .
89
 ?provider crm:P76_has_contact_point ?contactpoint .
90
?contactpoint rdfs:label ?contactpointLabel .
91
}
92
UNION {
93
<${subjectURL}> crmpe:PP2_provided_by ?provider .
94
 ?provider crm:P76_has_contact_point ?contactpoint .
95
 ?contactpoint crm:P2_has_type ?contactpointType .
96
?contactpointType rdfs:label ?contactpointTypeLabel .}
97
UNION {
98
 <${subjectURL}> crmpe:PP28_has_designated_access_point ?accesspoint .}
99
UNION {
100
 <${subjectURL}> crmpe:PP1i_is_currently_offered_by ?offerer .}
101
UNION {
102
 <${subjectURL}> crmpe:PP45_has_competency ?competence .
103
  ?competence rdfs:label ?competenceLabel .}
104
UNION {
105
 <${subjectURL}> crmpe:PP4_hosts_object ?object .}
106
 UNION {
107
  <${subjectURL}> crmpe:PP6_hosts_digital_object ?object3 .}
108
 UNION {
109
  <${subjectURL}> crmpe:PP7_hosts_software_object ?sw .}
110
 UNION {
111
  <${subjectURL}> crmpe:PP8_hosts_dataset ?dataset .}
112

    
113
UNION {
114
 <${subjectURL}> crmpe:PP31_uses_curation_plan ?curationplan .}
115

    
116
UNION {
117
 <${subjectURL}> crmpe:PP29_uses_access_protocol ?protocol .}
118
UNION {
119
<${subjectURL}> crmpe:PP29_uses_access_protocol ?protocol .
120
 ?protocol crmpe:PP47_has_protocol_type ?protocoltype .}
121
UNION {
122
<${subjectURL}> crmpe:PP29_uses_access_protocol ?protocol .
123
 ?protocol crmpe:PP48_uses_protocol_parameter ?protocolparam .}
124
UNION {
125
 <${subjectURL}> crmpe:PP46_brokers_access_to ?brokered .}
126
 UNION {
127
  <${subjectURL}> crmpe:PP32_curates ?object2 .}
128
UNION {
129
 <${subjectURL}> crmpe:PP11_curates_volatile_digital_object ?curatedObj .}
130
UNION {
131
 <${subjectURL}> crmpe:PP12_curates_volatile_software ?curatedSw .}
132
UNION {
133
 <${subjectURL}> crmpe:PP13_curates_volatile_dataset ?curatedData .}
134
UNION {
135
 <${subjectURL}> crmpe:PP15_delivers_on_request ?delivered .}
136
 UNION {
137
 <${subjectURL}> crmpe:PP42_has_declarative_time ?declTime .}
138
}
139

    
(4-4/7)