by identifiers such as “Freitas_Fam_Album” for the
“Freitas” family.
Image and photo documents have a structure/content
similar to the following excerpt:
<image>
<name>Family address of José Freitas</name>...
<city>Braga</city>
<date normDate="1885-01-01">…</date>
<img>http://.../jose_freitas.jpg</img> ...
</image>
Then, the query satisfying the current example is:
for $i in doc(“image1.xml”)/image
where $i/city =”Braga”
metadata $i in
select ?i
where {
?i rdf:type Images_and_photos .
?i contained_in ?f .
?f rdf:type Family_album .
FILTER msf:select(?f, (Freitas_Fam_Album,
Silva_Fam_Album)) .
}
return $i/img
In the metada clause, the list of identifiers of the
family albums found is displayed, as the answer
computed in the third triple pattern of the SPARQL
query (stored in variable ?f). The visitor may, then,
immediately identify those belonging to families he
knows. He can, then, select those albums using the
msf:select function associated to the FILTER clause.
In this query, the user selected albums from
“Freitas” and “Silva” families.
7 CONCLUSIONS
In this paper, we propose to integrate the iterative
paradigm for query construction into the
XQuery+SPARQL semantic querying language. We
believe this can help users to get the desired
information.
We intend to create a prototype processing
environment for the XQuery+SPARQL. We can use
existing XQuery and SPARQL query processors
integrating them with a special editor and result
visualizer. We will, then, test this prototype and
verify the usefulness of this approach using MEC
assets, as described in Section 6.
REFERENCES
Berglund, A., Boag, S., Chamberlin, D., Fernandez, M.,
Kay, M., Robie, J., Siméon, J., 2007. XML Path
Language (XPath) 2.0 W3C Recommendation 23
January 2007, URL: http://www.w3.org/TR/xpath20/.
Boag, S., Chamberlin, D., Fernandez, M., Florescu, D.,
Robie, J., Siméon, J., 2007. XQuery 1.0: An XML
Query Language W3C Recommendation 23 January
2007, http://www.w3.org/TR/xquery/.
Fallside, D. and Walmsley, P., 2004. XML Schema Part
0: Primer Second Edition, W3C Recommendation 28
October 2004. URL: http://www.w3.org/TR/
xmlschema-0/
Gançarski, A., Doucet, A., Henriques, P., 2006. AG-based
interactive system to retrieve information from XML
documents, IEE Proceedings Software Journal,
Volume 153, Issue 2, p. 51-60, April 2006.
Gançarski, A., Henriques, P., 2006. A Formal Definition
of Selection Operations that Extend XQuery with
Interactive Query Construction. International
Conference in Web Information Systems and
Technologies 2006 (Webist06), Setubal, Portugal,
INSTICC Press.
Gançarski, A., Henriques, P., 2007. Using data together
with metadata to improve XML information access.
International Conference in Web Information Systems
and Technologies 2007 (Webist07), Barcelone, Spain,
INSTICC Press.
Manola, F. and Miller, E., 2004. RDF Primer W3C
Recommendation 10 February 2004. URL:
http://www.w3.org/TR/rdf-primer/.
Prud’hommeaux, E. and Seaborn, A., 2007. SPARQL
Query Language for RDF W3C Proposed
Recommendation 12 November 2007. URL:
http://www.w3.org/TR/rdf-sparql-query/.
ITERATIVE XML SEARCH BASED ON DATA AND ASSOCIATED SEMANTICS
483