History
|
Log In
H
OME
B
ROWSE PROJECT
F
IND ISSUES
Q
UICK SEARCH:
Learn more about
Quick Search
Issue Details
[
XML
]
Key:
SES-925
Type:
Bug
Status:
Open
Priority:
Major
Assignee:
Arjohn Kampman
Reporter:
Paul Hermans
Votes:
0
Watchers:
0
Operations
If you were
logged in
you would be able to see more operations.
Sesame
redundant output with CONSTRUCT query
Created:
08/Feb/12 10:45 AM
Updated:
08/Feb/12 02:49 PM
Component/s:
SPARQL
Affects Version/s:
2.6.3
Fix Version/s:
None
Description
OUTPUT: 5 times same info
...
<rdf:Description rdf:about="
http://standaarden.overheid.nl/owms/terms/werkgever_(doelgroep)
">
<overheid:inScheme rdf:resource="
http://standaarden.overheid.nl/vac/terms/Doelgroep
"/>
<skos:prefLabel xml:lang="nl">werkgever</skos:prefLabel>
</rdf:Description>
....
<rdf:Description rdf:about="
http://standaarden.overheid.nl/owms/terms/werkgever_(doelgroep)
">
<overheid:inScheme rdf:resource="
http://standaarden.overheid.nl/vac/terms/Doelgroep
"/>
<skos:prefLabel xml:lang="nl">werkgever</skos:prefLabel>
</rdf:Description>
...
<rdf:Description rdf:about="
http://standaarden.overheid.nl/owms/terms/werkgever_(doelgroep)
">
<overheid:inScheme rdf:resource="
http://standaarden.overheid.nl/vac/terms/Doelgroep
"/>
<skos:prefLabel xml:lang="nl">werkgever</skos:prefLabel>
</rdf:Description>
...
<rdf:Description rdf:about="
http://standaarden.overheid.nl/owms/terms/werkgever_(doelgroep)
">
<overheid:inScheme rdf:resource="
http://standaarden.overheid.nl/vac/terms/Doelgroep
"/>
<skos:prefLabel xml:lang="nl">werkgever</skos:prefLabel>
</rdf:Description>
...
<rdf:Description rdf:about="
http://standaarden.overheid.nl/owms/terms/werkgever_(doelgroep)
">
<overheid:inScheme rdf:resource="
http://standaarden.overheid.nl/vac/terms/Doelgroep
"/>
<skos:prefLabel xml:lang="nl">werkgever</skos:prefLabel>
</rdf:Description>
</rdf:RDF>
CONSTRUCT query used:
query=PREFIX ...
CONSTRUCT { <
http://standaarden.overheid.nl/vac/terms/Doelgroep
> ?p ?v.
?l1 a <
http://standaarden.overheid.nl/vac/terms/Doelgroep
>.
?l2 skos:inScheme <
http://standaarden.overheid.nl/vac/terms/Doelgroep
>.
?l3 overheid:inScheme <
http://standaarden.overheid.nl/vac/terms/Doelgroep
>.
?l1 skos:prefLabel ?label.
?l2 skos:prefLabel ?label.
?l3 skos:prefLabel ?label.
?l1 overheid:startDate ?start.
?l1 overheid:endDate ?end.
<
http://standaarden.overheid.nl/vac/terms/Doelgroep
> rdfs:isDefinedBy <
http://standaarden.overheid.nl/vac/terms/Doelgroep.rdf
> .
<
http://standaarden.overheid.nl/vac/terms/Doelgroep
> rdfs:isDefinedBy <
http://standaarden.overheid.nl/vac/terms/Doelgroep.n3
> .
<
http://standaarden.overheid.nl/vac/terms/Doelgroep
> <
http://xmlns.com/foaf/0.1/page
> <
http://standaarden.overheid.nl/vac/terms/Doelgroep.html
> .
<
http://standaarden.overheid.nl/vac/terms/Doelgroep
> dcterms:isPartOf <
http://standaarden.overheid.nl/owms/terms/OWMSdataset
> .
<
http://standaarden.overheid.nl/vac/terms/Doelgroep.rdf
> dcterms:publisher overheid:ICTU .
<
http://standaarden.overheid.nl/vac/terms/Doelgroep.rdf
> dcterms:rights <
http://en.wikipedia.org/wiki/WP:GFDL
>.}
WHERE {
<
http://standaarden.overheid.nl/vac/terms/Doelgroep
> ?p ?v.
OPTIONAL {?l1 a <
http://standaarden.overheid.nl/vac/terms/Doelgroep
>.
?l1 skos:prefLabel ?label.
OPTIONAL {?l1 overheid:startDate ?start.}
OPTIONAL {?l1 overheid:endDate ?end. }}
OPTIONAL {?l2 skos:inScheme <
http://standaarden.overheid.nl/vac/terms/Doelgroep
>.
?l2 skos:prefLabel ?label. }
OPTIONAL {?l3 overheid:inScheme <
http://standaarden.overheid.nl/vac/terms/Doelgroep
>.
?l3 skos:prefLabel ?label. }
}
All
Comments
Change History
Sort Order:
[
Permlink
]
Comment by
James Leigh
[
08/Feb/12 02:49 PM
]
Using UNION instead of OPTIONAL in WHERE clause eliminates the redundancies.