PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT distinct ?x
WHERE
{
?per foaf:name Evgeniy Gabrilovich.
?x foaf:knows ?per .
}
By running this query on the original data, no
result will be returned. However, after applying our
approach the query returns 20 results. This means
that there are 20 people know Prof. Edward Benson
in our dataset.
Table 2: Query result using normal technique and the
proposed approach.
Dataset/
size
Query
number
RDF data that
represent DB
RDF + inferred
triples
RDF + rules
(2.71 MB) (3.39 MB) (2.71 MB)
Number
of
results
Execution
time
umber of
results
Execution
time
umber of
results
xecution
time
Q1 0 0.0040 2 0.0040 2 0.159
Q2 0 0.0040 39 0.0070 39 0.037
Q3 119 0.0100 119 0.0110 119 0.012
Q4 0 0.0040 9 0.0060 9 0.385
Q5 105 0.0090 105 0.0100 105 0.013
Q6 0 0.0040 20 0.0040 20 0.227
Using the user-defined rules in SPARQL engine
gets better result and improves the query answer
process. Moreover, the execution time of querying
the RDF with additional inferred data is almost the
same as RDF dataset only. However, querying RDF
with additional data gives better results. On the other
hand, query RDF dataset with the added rules gives
same results in a little higher execution time. The
execution time of the last dataset depends on the
number of expanded queries not the number of
results. The last dataset saves storage space.
However, the second dataset saves execution time.
Finally, the proposed approach can answer some
queries that cannot be answered by normal
approaches.
6 CONCLUSIONS
This paper proposes an approach for converting DB
to RDF. Moreover, to enable web agent to deeply
understand the generated data, we propose adding
user-defined rules. The added rules are very useful
for query answering process. Using forward
chaining the proposed approach adds inferred RDF
triples to the original RDF. On the other hand, the
propped system uses backward chaining for query
expansion and run these queries on the original
dataset that represents the DB. The experiments
show the effects of the proposed approach in
answering queries. Moreover, the effects of using
both approaches (adding inferred data and using rule
in the querying process) are shown in the
experiments.
REFERENCES
T. Berners-Lee, J. Hendler, O. Lassila, “The Semantic
Web,” Scientific American, Vol. 284, No. 5, 2001, pp.
34-43.
Siegfried Handschuh, Raphael Volz, Steffen Staab,
Annotation for the Deep Web, IEEE Intelligent
Systems, v.18 n.5, September 2003, pp.42-48.
Zhuoming Xu, Shichao Zhang, and Yisheng Dong,
Mapping between Relational Database Schema and
Owl Ontology for Deep Annotation, WI'06:
Proceedings of the 2006 IEEE/WIC/ACM
International Conference on Web Intelligence, IEEE
Computer Society, 2006, pp. 548-552.
Mamdouh Farouk, Samhaa R. El-Beltagy, Mahmoud
Rafea, "On-the Fly Annotation of Dynamic Web”
Proceedings of the First International Conference on
Web Information Systems and Technologies (WEBIST
2005),” Miami (USA), may 2005, pp 327-332.
Svihla, M., Jelinek, I.: The Database to RDF Mapping
Model for an Easy Semantic Extending of Dynamic
Web Sites. Proceedings of IADIS International
Conference WWW/Internet, Lisbon, Portugal, 2005,
pp.27-34
Pan, Z. and Heflin, J.: DLDB: Extending Relational
Databases to Support Semantic Web Queries, In
Workshop on Practical and Scaleable Semantic Web
Systems, The 2nd International Semantic Web
Conference (ISWC2003) (2003).
Ismael Navas Delgado, Nathalie Moreno Vergara, Antonio
C. Gomez Lora, María del Mar Roldán García, Iván
Ruiz Mostazo, José Francisco Aldana Montes:
“Embedding Semantic Annotations into Dynamic Web
Contents”. Proceeding of 15th international workshop
on database and Expert Systems Applications, 2004,
pp. 231-235
Chris Bizer, and Richard Cyganiak: D2R server
Publishing Relational Databases on the Semantic Web,
www4.wiwiss.fu-berlin.de/bizer/d2r-server/, 2010
Holger Knublauch, James A. Hendler, Kingsley Idehen
“SPIN - Overview and Motivation”, http://www.w3.
org/Submission/2011/SUBM-spin-overview-2011022
2/, February 2011.
J. Minsu and J. C Sohn, "Bossam: An Extended Rule
Engine for OWL Inferencing," In Proc. RuleML 2004,
pp. 128-138, 2004.
WEBIST2012-8thInternationalConferenceonWebInformationSystemsandTechnologies
716