190 likes | 336 Views
Ontology based e-Real Estate Agency Information System. By Moein Mehrolhasani 055230 Bijan Zamanian 055156 cmpe 588. Outline. What is our goal? Semnatic state Agency Implementation Queris Results Future Work. What is our goal?. Provide an ontology based information data base.
E N D
Ontology based e-Real Estate Agency Information System ByMoein Mehrolhasani 055230Bijan Zamanian 055156cmpe 588
Outline • What is our goal? • Semnatic state Agency • Implementation • Queris • Results • Future Work
What is our goal? • Provide an ontology based information data base. • For nonprofesional people to share their info in semantic world. • For which who does not know any thing about ontology • A simple system which can add ,remove,update and retriev information in an ontology based system
Gets inputs from user • Runs queris based on inputs • Return the result if there is any
Implementation • Protégé as ontology developer tool. • RDQL as query language • PHP as GUI developer • Apache as a webserver
Implementation(Cont. 1) • Classes, Properties and attributs are defined in owl file. • Owl File is transformed to rdfs file for simplicity o f running RDQL queries over it. • A GUI is designed in PHP. • Class_RDQL.php is included in t.php to perform query. • Class_RDQL.php calls class_rdfparser.php
Implementation(Cont. 2) • Rdf file is parsed and queried using above mentioned classes. • Parameters of GUI are sent to query. • Query runs using above mentioned parameters. • Results are reflected .
The general form of an RDQL query • SELECT variables listing • FROM rdf documents • WHERE patterns • AND filter expressions • USING prefix declaration
SELECT • Every successful query returns a set of variable bindings. • SELECT clause defines a list of variables to be returned . • Each variable is introduced by a question mark (?) SELECT ?name ?email, ?age,?tel_number
FROM In the FROM clause we specify the path or URL of the RDF document to be queried
WHERE Indicate a list of triple patterns which have to be matched by each valid query result set . (subject, predicate, object) WHERE (?resource, <http://www.w3.org/2001/vcard-rdf/3.0/EMAIL>,radol@gmx.de")
AND We can specify expressions over values of URIs and literals. • arithmetic conditions • string equality expressions • Perl-styl regula expressions
USING A way to make the query • easier to read • write for humans • shorten the length of URIs (used in the FROM, WHERE and AND clauses) WHERE (?resource, vCard:EMAIL, "radol@gmx.de") USING vCard FOR <http://www.w3.org/2001/vcard-rdf/3.0/>
Refrences [1] http://phpxmlclasses.sourceforge.net/ [2] http://jena.sourceforge.net/tutorial/RDQL [3] http://www.w3.org/Submission/RDQL [4] http://protege.stanford.edu/ [5]http://www.php.net