Add mail handler to Metaxa engine
---------------------------------
Key: STANBOL-368
URL: https://issues.apache.org/jira/browse/STANBOL-368
Project: Stanbol
Issue Type: Improvement
Components: Enhancer
Reporter: Florent ANDRE
Priority: Minor
a mail hander for metaxa engine can be added.
You can then analyse your emails via :
curl -i -X POST -H "Content-Type:message/rfc822" -H
"Accept:application/rdf+xml" -T mail-html.eml http://localhost:8080/engine
Results of the metaxa engine is for example :
HTTP/1.1 100 Continue
HTTP/1.1 200 OK
Content-Type: application/rdf+xml
Transfer-Encoding: chunked
Server: Jetty(6.1.x)
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:j.0="http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#"
xmlns:j.1="http://purl.org/dc/terms/"
xmlns:j.2="http://www.semanticdesktop.org/ontologies/2007/03/22/nco#"
xmlns:j.3="http://fise.iks-project.eu/ontology/" >
<rdf:Description rdf:about="email:[email protected]">
<j.2:hasEmailAddress
rdf:resource="urn:uuid:585b824e-f748-4f7a-861e-34a9eff48a35"/>
<j.2:fullname>nucleaire</j.2:fullname>
<rdf:type
rdf:resource="http://www.semanticdesktop.org/ontologies/2007/03/22/nco#Contact"/>
</rdf:Description>
<rdf:Description
rdf:about="urn:content-item-sha1-30fce3666b7b65de224d3febd40c7741575c7c09">
<j.0:sentDate
rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2011-10-24T20:01:11.000+02:00</j.0:sentDate>
<j.0:to rdf:resource="email:[email protected]"/>
<j.0:from rdf:resource="email:[email protected]"/>
<rdf:type
rdf:resource="http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#Email"/>
<j.0:plainTextMessageContent>Un projet que je vous propose. Destiné à des
personnes" s'interrogant
sur l'avenir du nucléaire, de droites ou de gauches.
... avec ce
projet provisoire...
AA
attachement.docx</j.0:plainTextMessageContent>
<j.0:messageSubject>[nucleaire] Fwd: suite</j.0:messageSubject>
</rdf:Description>
<rdf:Description
rdf:about="urn:enhancement-ae574639-0f01-6bec-3644-d597badb56a0">
<rdf:type rdf:resource="http://fise.iks-project.eu/ontology/Enhancement"/>
<j.3:extracted-from
rdf:resource="urn:content-item-sha1-30fce3666b7b65de224d3febd40c7741575c7c09"/>
<j.1:created
rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2011-10-31T15:33:44.645Z</j.1:created>
<j.1:creator
rdf:datatype="http://www.w3.org/2001/XMLSchema#string">org.apache.stanbol.enhancer.engines.metaxa.MetaxaEngine</j.1:creator>
<rdf:type
rdf:resource="http://fise.iks-project.eu/ontology/TextAnnotation"/>
<j.3:confidence
rdf:datatype="http://www.w3.org/2001/XMLSchema#double">1.0</j.3:confidence>
</rdf:Description>
<rdf:Description rdf:about="email:[email protected]">
<rdf:type
rdf:resource="http://www.semanticdesktop.org/ontologies/2007/03/22/nco#Contact"/>
<j.2:fullname>AA BB</j.2:fullname>
<j.2:hasEmailAddress
rdf:resource="urn:uuid:b1884e50-d355-4270-9cf3-24b7d8d2e9af"/>
</rdf:Description>
<rdf:Description rdf:about="urn:uuid:b1884e50-d355-4270-9cf3-24b7d8d2e9af">
<j.2:emailAddress>[email protected]</j.2:emailAddress>
<rdf:type
rdf:resource="http://www.semanticdesktop.org/ontologies/2007/03/22/nco#EmailAddress"/>
</rdf:Description>
<rdf:Description rdf:about="urn:uuid:585b824e-f748-4f7a-861e-34a9eff48a35">
<j.2:emailAddress>[email protected]</j.2:emailAddress>
<rdf:type
rdf:resource="http://www.semanticdesktop.org/ontologies/2007/03/22/nco#EmailAddress"/>
</rdf:Description>
</rdf:RDF>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira