• No results found

Prototype Implementation

N/A
N/A
Protected

Academic year: 2021

Share "Prototype Implementation"

Copied!
11
0
0

Loading.... (view fulltext now)

Full text

(1)

Prototype Implementation

Prototype Implementation

Final Report

Final Report

Group II Group II

Hoang Huu

Hoang Huu Hanh

Hanh

Nguyen Huu

Nguyen Huu Tinh

Tinh

19.07.2004

(2)

Content

Content

„

„

Prototype Implementation Results

Prototype Implementation Results

Architecture of Prototype

Architecture of Prototype

E

E

-

-

Mail Ontology for Prototype

Mail Ontology for Prototype

Completed Modules

Completed Modules

„

(3)

19/07/2004

19/07/2004 33

Architecture of Prototype

Architecture of Prototype

INTERFACE / ANALYSIS / EVENT-HANDLER

Javamail API

POP3/IMAP Mail Server

Client

Network API (Joseki)

In-Memory

Query

RDQL (other QL)

RDF API

(Writer/Reader)

Jena Semantic Web Framework

RDBMS

Stores Inference OWL API / RDFS API

Parser/Monitor Modules

The Internet

(4)

E

E

-

-

Mail Ontology (1)

Mail Ontology (1)

<?xml version="1.0" ?> <?xml version="1.0" ?>

-- <rdf:RDF<rdf:RDF xmlns:rdfxmlns:rdf="="http://www.w3.org/1999/02/22http://www.w3.org/1999/02/22--rdfrdf--syntaxsyntax--ns#ns#"" xmlns

xmlns="="http://http://www.ifs.tuwien.ac.at/swlifewww.ifs.tuwien.ac.at/swlife##"" xmlns:rdfs

xmlns:rdfs="="http://www.w3.org/2000/01/rdfhttp://www.w3.org/2000/01/rdf--schema#schema#"" xmlns:owl

xmlns:owl="="http://www.w3.org/2002/07/owl#http://www.w3.org/2002/07/owl#"" xmlns:daml

xmlns:daml="="http://www.daml.org/2001/03/daml+oil#http://www.daml.org/2001/03/daml+oil#"" xmlns:dc

xmlns:dc="="http://purl.org/dc/elements/1.1/http://purl.org/dc/elements/1.1/"" xml:base

xml:base="="http://http://www.ifs.tuwien.ac.at/swlifewww.ifs.tuwien.ac.at/swlife">"> <

<owl:Ontologyowl:Ontology rdf:about="" />rdf:about="" />

-- <owl:Class<owl:Class rdf:ID="rdf:ID="EmailMessageEmailMessage">"> <

<rdfs:labelrdfs:label xml:langxml:lang="="enen">">Email MessageEmail Message</</rdfs:labelrdfs:label>> <

<owl:versionInfoowl:versionInfo rdf:datatype

rdf:datatype="="http://www.w3.org/2001/XMLSchema#string">http://www.w3.org/2001/XMLSchema#string">1.0</1.0</owl:versionInfoowl:versionInfo>> <

<rdfs:commentrdfs:comment xml:langxml:lang="="enen">">Email Message Class</Email Message Class</rdfs:commentrdfs:comment>> </

</owl:Classowl:Class>>

-- <owl:Class<owl:Class rdf:ID="rdf:ID="RecipientsRecipients">"> <

<rdfs:subClassOfrdfs:subClassOf rdf:resourcerdf:resource="="##EmailMessage" />EmailMessage" /> </

</owl:Classowl:Class>>

-- <owl:Class<owl:Class rdf:ID="rdf:ID="EmailAddressEmailAddress">"> <

<rdfs:labelrdfs:label xml:langxml:lang="="enen">">Email AddressEmail Address</</rdfs:labelrdfs:label>> <

<rdfs:commentrdfs:comment xml:langxml:lang="="enen">">Details of an email address</Details of an email address</rdfs:commentrdfs:comment>> </

</owl:Classowl:Class>>

-- <owl:ObjectProperty<owl:ObjectProperty rdf:ID="rdf:ID="recipient_to">recipient_to"> <

<rdfs:rangerdfs:range rdf:resourcerdf:resource="="##EmailAddressEmailAddress" />" /> <

<rdfs:labelrdfs:label xml:langxml:lang="="enen">">RecipientRecipient</</rdfs:labelrdfs:label>> <

<rdfs:commentrdfs:comment xml:langxml:lang="="enen">">Main receiver of the email message</Main receiver of the email message</rdfs:commentrdfs:comment>> </

(5)

19/07/2004

19/07/2004 55

E

E

-

-

Mail Ontology (2)

Mail Ontology (2)

-- <owl:ObjectProperty<owl:ObjectProperty rdf:ID="rdf:ID="recipient_bcc">recipient_bcc"> <

<rdfs:labelrdfs:label xml:langxml:lang="="enen">">BCC Receiver</BCC Receiver</rdfs:labelrdfs:label>> <

<rdfs:domainrdfs:domain rdf:resource="rdf:resource="#Recipients" />#Recipients" /> <

<rdfs:commentrdfs:comment xml:langxml:lang="="enen">">BCC receiver of the mail message</BCC receiver of the mail message</rdfs:commentrdfs:comment>> <

<rdfs:rangerdfs:range rdf:resource="rdf:resource="##EmailAddress" />EmailAddress" /> </

</owl:ObjectPropertyowl:ObjectProperty>>

-- <owl:ObjectProperty<owl:ObjectProperty rdf:ID="rdf:ID="recipient_cc">recipient_cc"> <

<rdfs:commentrdfs:comment xml:langxml:lang="="enen">">CC receiver of the mail message</CC receiver of the mail message</rdfs:commentrdfs:comment>> <

<rdfs:rangerdfs:range rdf:resource="rdf:resource="##EmailAddress" />EmailAddress" /> <

<rdfs:labelrdfs:label xml:langxml:lang="="enen">">CC Receiver</CC Receiver</rdfs:labelrdfs:label>> </

</owl:ObjectPropertyowl:ObjectProperty>>

-- <owl:ObjectProperty<owl:ObjectProperty rdf:ID="rdf:ID="from">from"> <

<rdfs:labelrdfs:label xml:langxml:lang="="enen">">From</From</rdfs:labelrdfs:label>> <

<rdfs:commentrdfs:comment xml:langxml:lang="="enen">">Sender of the email message</Sender of the email message</rdfs:commentrdfs:comment>> <

<rdfs:rangerdfs:range rdf:resource="rdf:resource="##EmailAddress" />EmailAddress" /> <

<rdfs:domainrdfs:domain rdf:resource="rdf:resource="##EmailMessage" />EmailMessage" /> </

</owl:ObjectPropertyowl:ObjectProperty>>

-- <owl:DatatypeProperty<owl:DatatypeProperty rdf:ID="rdf:ID="msgId">msgId"> <

<rdfs:rangerdfs:range rdf:resource="rdf:resource="http://www.w3.org/2001/XMLSchema#anyURIhttp://www.w3.org/2001/XMLSchema#anyURI" />" /> <

<rdfs:labelrdfs:label xml:langxml:lang="="enen">">Message ID</Message ID</rdfs:labelrdfs:label>> <

<rdfs:commentrdfs:comment xml:langxml:lang="="enen">">Message ID of the email</Message ID of the email</rdfs:commentrdfs:comment>> <

<rdfs:domainrdfs:domain rdf:resource="rdf:resource="##EmailMessage" />EmailMessage" /> </

(6)

E

E

-

-

Mail Ontology (3)

Mail Ontology (3)

-- <owl:DatatypeProperty<owl:DatatypeProperty rdf:ID="rdf:ID="type">type"> <

<rdfs:labelrdfs:label xml:langxml:lang="="enen">">MIME Type</MIME Type</rdfs:labelrdfs:label>> <

<rdfs:rangerdfs:range rdf:resource="rdf:resource="http://www.w3.org/2001/XMLSchema#stringhttp://www.w3.org/2001/XMLSchema#string" />" /> <

<rdfs:commentrdfs:comment xml:langxml:lang="="enen">">MIME type of the mail message</MIME type of the mail message</rdfs:commentrdfs:comment>> <

<rdfs:domainrdfs:domain rdf:resource="rdf:resource="##EmailMessage" />EmailMessage" /> </

</owl:DatatypePropertyowl:DatatypeProperty>>

-- <owl:DatatypeProperty<owl:DatatypeProperty rdf:ID="rdf:ID="subject">subject"> <

<rdfs:rangerdfs:range rdf:resource="rdf:resource="http://www.w3.org/2001/XMLSchema#stringhttp://www.w3.org/2001/XMLSchema#string" />" /> <

<rdfs:domainrdfs:domain rdf:resource="rdf:resource="##EmailMessage" />EmailMessage" /> <

<rdfs:commentrdfs:comment xml:langxml:lang="="enen">">Subject of the mail message</Subject of the mail message</rdfs:commentrdfs:comment>> <

<rdfs:labelrdfs:label xml:langxml:lang="="enen">">Mail Subject</Mail Subject</rdfs:labelrdfs:label>> </

</owl:DatatypePropertyowl:DatatypeProperty>>

-- <owl:DatatypeProperty<owl:DatatypeProperty rdf:ID="rdf:ID="EE--Address">Address"> <

<rdfs:labelrdfs:label xml:langxml:lang="="enen">">Email Address</Email Address</rdfs:labelrdfs:label>> <

<rdfs:domainrdfs:domain rdf:resource="rdf:resource="##EmailAddress" />EmailAddress" /> <

<rdfs:rangerdfs:range rdf:resource="rdf:resource="http://www.w3.org/2001/XMLSchema#stringhttp://www.w3.org/2001/XMLSchema#string" />" /> <

<rdfs:commentrdfs:comment xml:langxml:lang="="enen">">Email Address</Email Address</rdfs:commentrdfs:comment>> </

</owl:DatatypePropertyowl:DatatypeProperty>>

-- <owl:DatatypeProperty<owl:DatatypeProperty rdf:ID="rdf:ID="sentDate">sentDate"> <

<rdfs:rangerdfs:range rdf:resource="rdf:resource="http://www.w3.org/2001/XMLSchema#dateTimehttp://www.w3.org/2001/XMLSchema#dateTime" />" /> <

<rdfs:labelrdfs:label xml:langxml:lang="="enen">">Sent Date</Sent Date</rdfs:labelrdfs:label>> <

<rdfs:domainrdfs:domain rdf:resource="rdf:resource="##EmailMessage" />EmailMessage" /> <

<rdfs:commentrdfs:comment xml:langxml:lang="="enen">">The date at which the email message was The date at which the email message was sent

sent</</rdfs:commentrdfs:comment>> </

</owl:DatatypePropertyowl:DatatypeProperty>> </

(7)

19/07/2004

19/07/2004 77

Completed Modules

Completed Modules

„

„

Parsing Email messages to RDF module

Parsing Email messages to RDF module

: to pare

: to pare

all messages from a mailbox to a RDF model

all messages from a mailbox to a RDF model

„

„

Persisting RDF model to RDBMS module

Persisting RDF model to RDBMS module

: to

: to

persist a model to a

persist a model to a

MySQL

MySQL

database

database

„

„

Monitoring new messages module

Monitoring new messages module

: to monitor a

: to monitor a

mailbox for new messages, then parse them to

mailbox for new messages, then parse them to

RDF data and merge into existing RDF

RDF data and merge into existing RDF

persistence.

persistence.

„

„

Query module

Query module

: to make queries (using RDQL)

: to make queries (using RDQL)

into RDF model in memory or in a persistence.

(8)

Completed Modules

Completed Modules

„

„

Publishing a model to RDF Server (

Publishing a model to RDF Server (

Joseki

Joseki

)

)

: to

: to

publish a model stored in a RDF XML file or in a

publish a model stored in a RDF XML file or in a

persistent database to

persistent database to

Joseki

Joseki

RDF server.

RDF server.

„

„

Module of Query a Remote Model

Module of Query a Remote Model

: to make

: to make

queries into remote models from

queries into remote models from

Joseki

Joseki

RDF

RDF

server using HTTP GET protocol (

server using HTTP GET protocol (

Joseki

Joseki

is a

is a

module of Jena Semantic Framework Toolkit).

module of Jena Semantic Framework Toolkit).

„

„

Reasoning Module (in progress)

Reasoning Module (in progress)

: to create a

: to create a

inference layer for the system to support

inference layer for the system to support

querying information from system in semantic

querying information from system in semantic

way.

(9)

Run Demos

(10)

Comments

Comments

-

-

Future Work

Future Work

...

...

(11)

Thank you !

References

Related documents