Project

General

Profile

« Previous | Next » 

Revision 51231

sparql queries are now freemarker templates where the subjectURL can be injected

View differences:

PE35_Project.sparql
10 10
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
11 11

  
12 12
CONSTRUCT {
13
?s crm:P1_is_identified_by ?title .
14
?s crm:P3_has_note ?description .
15
?s a ?type .
16
?s crmpe:PP25_has_maintaining_RI ?ri .
17
?s crmpe:PP43_supported_project_activity ?activity .
18
?s crmpe:PP44_has_maintaining_team ?team .
13
<${subjectURL}> crm:P1_is_identified_by ?title .
14
<${subjectURL}> crm:P3_has_note ?description .
15
<${subjectURL}> a ?type .
16
<${subjectURL}> crmpe:PP25_has_maintaining_RI ?ri .
17
<${subjectURL}> crmpe:PP43_supported_project_activity ?activity .
18
<${subjectURL}> crmpe:PP44_has_maintaining_team ?team .
19 19
}
20 20
WHERE {
21
 ?s a crmpe:PE35_Project .
22
 ?s crm:P1_is_identified_by ?titleRes .
21
 <${subjectURL}> a crmpe:PE35_Project .
22
 <${subjectURL}> crm:P1_is_identified_by ?titleRes .
23 23
 ?titleRes rdfs:label ?title .
24
 ?s crm:P3_has_note ?description .
25
 ?s a ?type .
26
 ?s crmpe:PP25_has_maintaining_RI ?ri .
27
 ?s crmpe:PP43_supported_project_activity ?activity .
28
 ?s crmpe:PP44_has_maintaining_team ?team .
24
 <${subjectURL}> crm:P3_has_note ?description .
25
 <${subjectURL}> a ?type .
26
 <${subjectURL}> crmpe:PP25_has_maintaining_RI ?ri .
27
 <${subjectURL}> crmpe:PP43_supported_project_activity ?activity .
28
 <${subjectURL}> crmpe:PP44_has_maintaining_team ?team .
29 29
}

Also available in: Unified diff