Sign in
apache
/
jena-site
/
refs/heads/asf-site
/
.
/
content
/
tutorials
/
sparql_data
/
q-opt4.rq
blob: 13b230084b474e812a09d9eaad8ea57549675e95 [
file
] [
log
] [
blame
]
# Optional example
PREFIX info
:
<
http
:
//somewhere/peopleInfo#>
PREFIX vcard
:
<
http
:
//www.w3.org/2001/vcard-rdf/3.0#>
SELECT
?
name
?
age
WHERE
{
?
person vcard
:
FN
?
name
.
OPTIONAL
{
?
person info
:
age
?
age
.
}
FILTER
(
!
bound
(?
age
)
||
?
age
>
24
)
}