blob: 3870075511b51d9878e4f2a76a1a2b1d9aadab9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Prefixes
PREFIX pub: <http://ontology.ontotext.com/taxonomy/>
PREFIX publishing: <http://ontology.ontotext.com/publishing#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
select ?document ?mention ?personLabel ?party_label {
{
select * {
?document publishing:containsMention ?mention .
?person pub:memberOfPoliticalParty ?party .
?person pub:preferredLabel ?personLabel .
?party pub:hasValue ?value .
?value pub:preferredLabel ?party_label .
filter(?personLabel = "Judy Chu"@en)
{
Select * where {
?mention publishing:hasInstance ?person .
}
}
}
}
union
{
select * where {
?mention publishing:hasInstance ?person .
?document publishing:containsMention ?mention .
?person pub:memberOfPoliticalParty / pub:hasValue / pub:preferredLabel ?party_label .
?person pub:preferredLabel ?personLabel .
filter(?personLabel = "Barack Obama"@en)
}
}
}
|