Revision 50851
Added by Alessia Bardi over 6 years ago
modules/dnet-parthenos-publisher/trunk/src/main/resources/eu/dnetlib/parthenos/sparql/E70_Thing.sparql | ||
---|---|---|
1 |
//TODO: |
|
2 |
//1. Complete retrieved information |
|
3 |
//2. Title can be a literal |
|
4 |
//3. Do we really need a sparql query for Thing? Digital Object, Dataset, CRM_entity are all Thing... |
|
5 |
|
|
6 |
DEFINE input:inference |
|
7 |
'parthenos_rules' |
|
8 |
|
|
9 |
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/> |
|
10 |
PREFIX crmdig: <http://www.ics.forth.gr/isl/CRMdig/> |
|
11 |
PREFIX crmpe: <http://parthenos.d4science.org/CRMext/CRMpe.rdfs/> |
|
12 |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
|
13 |
|
|
14 |
CONSTRUCT { |
|
15 |
?s crm:P1_is_identified_by ?title . |
|
16 |
?s crm:P3_has_note ?description . |
|
17 |
?s a ?type |
|
18 |
} |
|
19 |
WHERE { |
|
20 |
?s a crm:E70_Thing . |
|
21 |
?s crm:P1_is_identified_by ?titleRes . |
|
22 |
?titleRes rdfs:label ?title . |
|
23 |
?s crm:P3_has_note ?description . |
|
24 |
?s a ?type . |
|
25 |
FILTER(STRSTARTS(STR(?s), "http")) . |
|
26 |
} |
|
27 |
|
modules/dnet-parthenos-publisher/trunk/src/main/resources/eu/dnetlib/parthenos/sparql/PE1_Service.sparql | ||
---|---|---|
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 |
?s crm:P1_is_identified_by ?title . |
|
15 |
?s crm:P3_has_note ?description . |
|
16 |
?s a ?type . |
|
17 |
?s 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 |
?s crmpe:PP28_has_designated_access_point ?accesspoint . |
|
25 |
?s crmpe:PP1i_is_currently_offered_by ?offerer . |
|
26 |
?s crmpe:PP45_has_competency ?competency . |
|
27 |
?s crmpe:PP4_hosts_object ?object . |
|
28 |
?s crmpe:PP31_uses_curation_plan ?curationplan . |
|
29 |
?s crmpe:PP32_curates ?object2 . |
|
30 |
?s crmpe:PP6_hosts_digital_object ?object3 . |
|
31 |
?s crmpe:PP7_hosts_software_object ?sw . |
|
32 |
?s crmpe:PP8_hosts_dataset ?dataset . |
|
33 |
?s crmpe:PP29_uses_access_protocol ?protocol . |
|
34 |
?s crmpe:PP47_has_protocol_type ?protocoltype . |
|
35 |
?s crmpe:PP48_uses_protocol_parameter ?protocolparam . |
|
36 |
?s crmpe:PP46_brokers_access_to ?brokered . |
|
37 |
?s crmpe:PP11_curates_volatile_digital_object ?curatedObj . |
|
38 |
?s crmpe:PP12_curates_volatile_software ?curatedSw . |
|
39 |
?s crmpe:PP13_curates_volatile_dataset ?curatedData . |
|
40 |
?s crmpe:PP15_delivers_on_request ?delivered . |
|
41 |
|
|
42 |
} |
|
43 |
WHERE { |
|
44 |
?s a crmpe:PE1_Service . |
|
45 |
?s a ?type . |
|
46 |
OPTIONAL { |
|
47 |
?s crm:P1_is_identified_by ?titleRes . |
|
48 |
?titleRes rdfs:label ?title . |
|
49 |
} |
|
50 |
OPTIONAL{ |
|
51 |
?s crm:P3_has_note ?description . |
|
52 |
} |
|
53 |
OPTIONAL{ |
|
54 |
?s crmpe:PP2_provided_by ?provider . |
|
55 |
} |
|
56 |
OPTIONAL { |
|
57 |
?s crmpe:PP2_provided_by ?provider . |
|
58 |
?provider crm:P1_is_identified_by ?providerTitleRes . |
|
59 |
?providerTitleRes rdfs:label ?providerTitle . |
|
60 |
} |
|
61 |
OPTIONAL { |
|
62 |
?s crmpe:PP2_provided_by ?provider . |
|
63 |
?provider crm:P3_has_note ?providerDescr . |
|
64 |
} |
|
65 |
OPTIONAL { |
|
66 |
?s crmpe:PP2_provided_by ?provider . |
|
67 |
?provider crm:P76_has_contact_point ?contactpoint . |
|
68 |
?contactpoint rdfs:label ?contactpointLabel . |
|
69 |
} |
|
70 |
OPTIONAL { |
|
71 |
?s 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 |
?s crmpe:PP28_has_designated_access_point ?accesspoint .} |
|
77 |
OPTIONAL { |
|
78 |
?s crmpe:PP1i_is_currently_offered_by ?offerer .} |
|
79 |
OPTIONAL { |
|
80 |
?s crmpe:PP45_has_competency ?competency .} |
|
81 |
OPTIONAL { |
|
82 |
?s crmpe:PP4_hosts_object ?object .} |
|
83 |
OPTIONAL { |
|
84 |
?s crmpe:PP31_uses_curation_plan ?curationplan .} |
|
85 |
OPTIONAL { |
|
86 |
?s crmpe:PP32_curates ?object2 .} |
|
87 |
OPTIONAL { |
|
88 |
?s crmpe:PP6_hosts_digital_object ?object3 .} |
|
89 |
OPTIONAL { |
|
90 |
?s crmpe:PP7_hosts_software_object ?sw .} |
|
91 |
OPTIONAL { |
|
92 |
?s crmpe:PP8_hosts_dataset ?dataset .} |
|
93 |
OPTIONAL { |
|
94 |
?s crmpe:PP29_uses_access_protocol ?protocol .} |
|
95 |
OPTIONAL { |
|
96 |
?s crmpe:PP47_has_protocol_type ?protocoltype .} |
|
97 |
OPTIONAL { |
|
98 |
?s crmpe:PP48_uses_protocol_parameter ?protocolparam .} |
|
99 |
OPTIONAL { |
|
100 |
?s crmpe:PP46_brokers_access_to ?brokered .} |
|
101 |
OPTIONAL { |
|
102 |
?s crmpe:PP11_curates_volatile_digital_object ?curatedObj .} |
|
103 |
OPTIONAL { |
|
104 |
?s crmpe:PP12_curates_volatile_software ?curatedSw .} |
|
105 |
OPTIONAL { |
|
106 |
?s crmpe:PP13_curates_volatile_dataset ?curatedData .} |
|
107 |
OPTIONAL { |
|
108 |
?s crmpe:PP15_delivers_on_request ?delivered .} |
|
109 |
|
|
110 |
FILTER(STRSTARTS(STR(?s), "http")) . |
|
111 |
} |
|
112 |
|
modules/dnet-parthenos-publisher/trunk/src/main/resources/eu/dnetlib/parthenos/sparql/E39_Actor.sparql | ||
---|---|---|
1 |
//TODO: |
|
2 |
//1. Complete retrieved information |
|
3 |
//2. Title can be a literal |
|
4 |
|
|
5 |
DEFINE input:inference |
|
6 |
'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 |
?s crm:P1_is_identified_by ?title . |
|
15 |
?s crm:P3_has_note ?description . |
|
16 |
?s a ?type . |
|
17 |
?s crm:P76_has_contact_point ?contactpoint . |
|
18 |
?contactpoint crm:P2_has_type ?contactpointType . |
|
19 |
?contactpoint rdfs:label ?contactpointLabel . |
|
20 |
?contactpointType rdfs:label ?contactpointTypeLabel . |
|
21 |
} |
|
22 |
WHERE { |
|
23 |
?s a crm:E39_Actor . |
|
24 |
?s a ?type . |
|
25 |
OPTIONAL{ |
|
26 |
?s crm:P1_is_identified_by ?titleRes . |
|
27 |
?titleRes rdfs:label ?title . |
|
28 |
} |
|
29 |
OPTIONAL{ |
|
30 |
?s crm:P3_has_note ?description . |
|
31 |
} |
|
32 |
OPTIONAL{ |
|
33 |
?s crm:P76_has_contact_point ?contactpoint . |
|
34 |
?contactpoint rdfs:label ?contactpointLabel . |
|
35 |
} |
|
36 |
OPTIONAL{ |
|
37 |
?s crm:P76_has_contact_point ?contactpoint . |
|
38 |
?contactpoint crm:P2_has_type ?contactpointType . |
|
39 |
?contactpointType rdfs:label ?contactpointTypeLabel . |
|
40 |
} |
|
41 |
} |
Also available in: Unified diff
SPARQL queries