You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stanbol.apache.org by David Riccitelli <da...@insideout.io> on 2012/01/18 09:38:10 UTC
error in refactor
Hello,
I'm performing an analysis of a text using the refactor engine. Eventually
the analysis fails with the following exception. It seems that the
'Méditerranées' is looked as a DNS name, and the exception is not trapped.
I added these lines of code to log the exception but continue the
processing:
----
file: rules/refactor/src/main/java/org/apache/stanbol/rules/refactor/impl/RefactorerImpl.java
----
391 case KReSCore:
392 try {
393 if (mGraph instanceof MGraph)
constructedGraph = kReSCoreOperation(sparql,
394 (MGraph) mGraph);
395 } catch (Exception ex) {
396 log.error("An exception occurred: [{}]
{}",ex.getClass(),ex.getMessage());
397 }
398 break;
----
18.01.2012 08:31:37.212 *WARN* [1160165988@qtp-2071272094-0]
org.apache.felix.http.jetty /engines
(com.hp.hpl.jena.shared.BadURIException: Only well-formed absolute URIrefs
can be included in RDF/XML output: <http://M%C3%A9diterran%C3%A9es> Code:
28/NOT_DNS_NAME in HOST: The host component did not meet the restrictions
on DNS names.) com.hp.hpl.jena.shared.BadURIException: Only well-formed
absolute URIrefs can be included in RDF/XML output:
<http://M%C3%A9diterran%C3%A9es>
Code: 28/NOT_DNS_NAME in HOST: The host component did not meet the
restrictions on DNS names.
at
com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.checkURI(BaseXMLWriter.java:829)
at
com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.relativize(BaseXMLWriter.java:806)
at
com.hp.hpl.jena.xmloutput.impl.Basic.writeResourceReference(Basic.java:148)
at
com.hp.hpl.jena.xmloutput.impl.Basic.writePredicate(Basic.java:101)
at
com.hp.hpl.jena.xmloutput.impl.Basic.writeRDFStatements(Basic.java:77)
at
com.hp.hpl.jena.xmloutput.impl.Basic.writeRDFStatements(Basic.java:66)
at com.hp.hpl.jena.xmloutput.impl.Basic.writeBody(Basic.java:40)
at
com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.writeXMLBody(BaseXMLWriter.java:500)
at
com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.write(BaseXMLWriter.java:472)
at
com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.write(BaseXMLWriter.java:458)
at com.hp.hpl.jena.rdf.model.impl.ModelCom.write(ModelCom.java:271)
at
org.apache.stanbol.owl.transformation.JenaToClerezzaConverter.jenaModelToClerezzaMGraph(JenaToClerezzaConverter.java:89)
at
org.apache.stanbol.rules.refactor.impl.RefactorerImpl.kReSCoreOperation(RefactorerImpl.java:237)
at
org.apache.stanbol.rules.refactor.impl.RefactorerImpl.ontologyRefactoring(RefactorerImpl.java:392)
at
org.apache.stanbol.enhancer.engines.refactor.RefactorEnhancementEngine.computeEnhancements(RefactorEnhancementEngine.java:348)
at
org.apache.stanbol.enhancer.jobmanager.impl.WeightedJobManager.enhanceContent(WeightedJobManager.java:80)
at
org.apache.stanbol.enhancer.jersey.resource.EnginesRootResource.enhanceAndBuildResponse(EnginesRootResource.java:175)
at
org.apache.stanbol.enhancer.jersey.resource.EnginesRootResource.enhanceFromForm(EnginesRootResource.java:139)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
(...)
Ciao,
David
--
David Riccitelli
********************************************************************************
InsideOut10 s.r.l.
P.IVA: IT-11381771002
Fax: +39 0110708239
---
LinkedIn: http://it.linkedin.com/in/riccitelli
Twitter: ziodave
---
Layar Partner Network<http://www.layar.com/publishing/developers/list/?page=1&country=&city=&keyword=insideout10&lpn=1>
********************************************************************************
Re: error in refactor
Posted by David Riccitelli <da...@interact.it>.
Of course, find it attached.
Ciao,
David
On Wed, Jan 18, 2012 at 4:16 PM, Andrea Giovanni Nuzzolese <
nuzzoles@cs.unibo.it> wrote:
> Hi David,
>
> may I have also the rules you configure for your refactor engine?
>
> Thanks.
> Andrea
>
> On Jan 18, 2012, at 2:23 PM, David Riccitelli wrote:
>
> > Hi Andrea,
> >
> > This is the list:
> > [1] org.apache.stanbol.enhancer.engines.metaxa.MetaxaEngine
> > [3] org.apache.stanbol.enhancer.engines.langid.LangIdEnhancementEngine
> > [3]
> org.apache.stanbol.enhancer.engines.opennlp.impl.NamedEntityExtractionEnhancementEngine
> > [4]
> org.apache.stanbol.enhancer.engines.entitytagging.impl.NamedEntityTaggingEngine
> > [5]
> org.apache.stanbol.enhancer.engines.entitytagging.impl.NamedEntityTaggingEngine
> > [6]
> org.apache.stanbol.enhancer.engines.refactor.RefactorEnhancementEngine
> > [7] org.apache.stanbol.enhancer.engines.opencalais.impl.OpenCalaisEngine
> > [8]
> org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine
> > [9]
> org.apache.stanbol.enhancer.engines.geonames.impl.LocationEnhancementEngine
> >
> > I can't remember exactly which text I was testing and I erased the old
> log
> > file :-S
> >
> > David
> >
> > On Wed, Jan 18, 2012 at 2:12 PM, Andrea Giovanni Nuzzolese <
> > nuzzoles@cs.unibo.it> wrote:
> >
> >> Hi David, all,
> >>
> >> may I have the complete list of enhancement engines you used and the
> text
> >> you submitted to the Enhancer and the rules you used?
> >> Because, with "Méditerranée" and my configuration of the enhancer
> >> everything works properly and I am not able to reproduce the error.
> >>
> >> Best.
> >> Andrea
> >>
> >> By the way, the error itself is clear as the URI <http://M
> %C3%A9diterran%C3%A9es>
> >> is not well formed
> >> On Jan 18, 2012, at 9:38 AM, David Riccitelli wrote:
> >>
> >>> Hello,
> >>>
> >>> I'm performing an analysis of a text using the refactor engine.
> >> Eventually
> >>> the analysis fails with the following exception. It seems that the
> >>> 'Méditerranées' is looked as a DNS name, and the exception is not
> >> trapped.
> >>>
> >>> I added these lines of code to log the exception but continue the
> >>> processing:
> >>> ----
> >>> file:
> >>
> rules/refactor/src/main/java/org/apache/stanbol/rules/refactor/impl/RefactorerImpl.java
> >>> ----
> >>> 391 case KReSCore:
> >>> 392 try {
> >>> 393 if (mGraph instanceof MGraph)
> >>> constructedGraph = kReSCoreOperation(sparql,
> >>> 394 (MGraph) mGraph);
> >>> 395 } catch (Exception ex) {
> >>> 396 log.error("An exception occurred:
> >> [{}]
> >>> {}",ex.getClass(),ex.getMessage());
> >>> 397 }
> >>> 398 break;
> >>> ----
> >>>
> >>>
> >>> 18.01.2012 08:31:37.212 *WARN* [1160165988@qtp-2071272094-0]
> >>> org.apache.felix.http.jetty /engines
> >>> (com.hp.hpl.jena.shared.BadURIException: Only well-formed absolute
> >> URIrefs
> >>> can be included in RDF/XML output: <http://M%C3%A9diterran%C3%A9es>
> >> Code:
> >>> 28/NOT_DNS_NAME in HOST: The host component did not meet the
> restrictions
> >>> on DNS names.) com.hp.hpl.jena.shared.BadURIException: Only well-formed
> >>> absolute URIrefs can be included in RDF/XML output:
> >>> <http://M%C3%A9diterran%C3%A9es>
> >>> Code: 28/NOT_DNS_NAME in HOST: The host component did not meet the
> >>> restrictions on DNS names.
> >>> at
> >>>
> >>
> com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.checkURI(BaseXMLWriter.java:829)
> >>> at
> >>>
> >>
> com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.relativize(BaseXMLWriter.java:806)
> >>> at
> >>>
> >>
> com.hp.hpl.jena.xmloutput.impl.Basic.writeResourceReference(Basic.java:148)
> >>> at
> >>> com.hp.hpl.jena.xmloutput.impl.Basic.writePredicate(Basic.java:101)
> >>> at
> >>> com.hp.hpl.jena.xmloutput.impl.Basic.writeRDFStatements(Basic.java:77)
> >>> at
> >>> com.hp.hpl.jena.xmloutput.impl.Basic.writeRDFStatements(Basic.java:66)
> >>> at com.hp.hpl.jena.xmloutput.impl.Basic.writeBody(Basic.java:40)
> >>> at
> >>>
> >>
> com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.writeXMLBody(BaseXMLWriter.java:500)
> >>> at
> >>>
> >>
> com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.write(BaseXMLWriter.java:472)
> >>> at
> >>>
> >>
> com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.write(BaseXMLWriter.java:458)
> >>> at
> >> com.hp.hpl.jena.rdf.model.impl.ModelCom.write(ModelCom.java:271)
> >>> at
> >>>
> >>
> org.apache.stanbol.owl.transformation.JenaToClerezzaConverter.jenaModelToClerezzaMGraph(JenaToClerezzaConverter.java:89)
> >>> at
> >>>
> >>
> org.apache.stanbol.rules.refactor.impl.RefactorerImpl.kReSCoreOperation(RefactorerImpl.java:237)
> >>> at
> >>>
> >>
> org.apache.stanbol.rules.refactor.impl.RefactorerImpl.ontologyRefactoring(RefactorerImpl.java:392)
> >>> at
> >>>
> >>
> org.apache.stanbol.enhancer.engines.refactor.RefactorEnhancementEngine.computeEnhancements(RefactorEnhancementEngine.java:348)
> >>> at
> >>>
> >>
> org.apache.stanbol.enhancer.jobmanager.impl.WeightedJobManager.enhanceContent(WeightedJobManager.java:80)
> >>> at
> >>>
> >>
> org.apache.stanbol.enhancer.jersey.resource.EnginesRootResource.enhanceAndBuildResponse(EnginesRootResource.java:175)
> >>> at
> >>>
> >>
> org.apache.stanbol.enhancer.jersey.resource.EnginesRootResource.enhanceFromForm(EnginesRootResource.java:139)
> >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>> (...)
> >>>
> >>> Ciao,
> >>> David
> >>>
> >>>
> >>> --
> >>> David Riccitelli
> >>>
> >>>
> >>
> ********************************************************************************
> >>> InsideOut10 s.r.l.
> >>> P.IVA: IT-11381771002
> >>> Fax: +39 0110708239
> >>> ---
> >>> LinkedIn: http://it.linkedin.com/in/riccitelli
> >>> Twitter: ziodave
> >>> ---
> >>> Layar Partner Network<
> >>
> http://www.layar.com/publishing/developers/list/?page=1&country=&city=&keyword=insideout10&lpn=1
> >>>
> >>>
> >>
> ********************************************************************************
> >>
> >>
> >>
> >
> >
> > --
> > David Riccitelli
> >
> >
> ********************************************************************************
> > InsideOut10 s.r.l.
> > P.IVA: IT-11381771002
> > Fax: +39 0110708239
> > ---
> > LinkedIn: http://it.linkedin.com/in/riccitelli
> > Twitter: ziodave
> > ---
> > Layar Partner Network<
> http://www.layar.com/publishing/developers/list/?page=1&country=&city=&keyword=insideout10&lpn=1
> >
> >
> ********************************************************************************
>
>
>
--
David Riccitelli
-----
Skype: ziodave
Twitter: @ziodave
LinkedIn: http://it.linkedin.com/in/riccitelli
-----
Interact SpA
Via A. Bargoni 78 (scala F)
00153 Roma
T +39 06 58318 301
F +39 06 58318 303
Re: error in refactor
Posted by Andrea Giovanni Nuzzolese <nu...@cs.unibo.it>.
Hi David,
may I have also the rules you configure for your refactor engine?
Thanks.
Andrea
On Jan 18, 2012, at 2:23 PM, David Riccitelli wrote:
> Hi Andrea,
>
> This is the list:
> [1] org.apache.stanbol.enhancer.engines.metaxa.MetaxaEngine
> [3] org.apache.stanbol.enhancer.engines.langid.LangIdEnhancementEngine
> [3] org.apache.stanbol.enhancer.engines.opennlp.impl.NamedEntityExtractionEnhancementEngine
> [4] org.apache.stanbol.enhancer.engines.entitytagging.impl.NamedEntityTaggingEngine
> [5] org.apache.stanbol.enhancer.engines.entitytagging.impl.NamedEntityTaggingEngine
> [6] org.apache.stanbol.enhancer.engines.refactor.RefactorEnhancementEngine
> [7] org.apache.stanbol.enhancer.engines.opencalais.impl.OpenCalaisEngine
> [8] org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine
> [9] org.apache.stanbol.enhancer.engines.geonames.impl.LocationEnhancementEngine
>
> I can't remember exactly which text I was testing and I erased the old log
> file :-S
>
> David
>
> On Wed, Jan 18, 2012 at 2:12 PM, Andrea Giovanni Nuzzolese <
> nuzzoles@cs.unibo.it> wrote:
>
>> Hi David, all,
>>
>> may I have the complete list of enhancement engines you used and the text
>> you submitted to the Enhancer and the rules you used?
>> Because, with "Méditerranée" and my configuration of the enhancer
>> everything works properly and I am not able to reproduce the error.
>>
>> Best.
>> Andrea
>>
>> By the way, the error itself is clear as the URI <http://M%C3%A9diterran%C3%A9es>
>> is not well formed
>> On Jan 18, 2012, at 9:38 AM, David Riccitelli wrote:
>>
>>> Hello,
>>>
>>> I'm performing an analysis of a text using the refactor engine.
>> Eventually
>>> the analysis fails with the following exception. It seems that the
>>> 'Méditerranées' is looked as a DNS name, and the exception is not
>> trapped.
>>>
>>> I added these lines of code to log the exception but continue the
>>> processing:
>>> ----
>>> file:
>> rules/refactor/src/main/java/org/apache/stanbol/rules/refactor/impl/RefactorerImpl.java
>>> ----
>>> 391 case KReSCore:
>>> 392 try {
>>> 393 if (mGraph instanceof MGraph)
>>> constructedGraph = kReSCoreOperation(sparql,
>>> 394 (MGraph) mGraph);
>>> 395 } catch (Exception ex) {
>>> 396 log.error("An exception occurred:
>> [{}]
>>> {}",ex.getClass(),ex.getMessage());
>>> 397 }
>>> 398 break;
>>> ----
>>>
>>>
>>> 18.01.2012 08:31:37.212 *WARN* [1160165988@qtp-2071272094-0]
>>> org.apache.felix.http.jetty /engines
>>> (com.hp.hpl.jena.shared.BadURIException: Only well-formed absolute
>> URIrefs
>>> can be included in RDF/XML output: <http://M%C3%A9diterran%C3%A9es>
>> Code:
>>> 28/NOT_DNS_NAME in HOST: The host component did not meet the restrictions
>>> on DNS names.) com.hp.hpl.jena.shared.BadURIException: Only well-formed
>>> absolute URIrefs can be included in RDF/XML output:
>>> <http://M%C3%A9diterran%C3%A9es>
>>> Code: 28/NOT_DNS_NAME in HOST: The host component did not meet the
>>> restrictions on DNS names.
>>> at
>>>
>> com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.checkURI(BaseXMLWriter.java:829)
>>> at
>>>
>> com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.relativize(BaseXMLWriter.java:806)
>>> at
>>>
>> com.hp.hpl.jena.xmloutput.impl.Basic.writeResourceReference(Basic.java:148)
>>> at
>>> com.hp.hpl.jena.xmloutput.impl.Basic.writePredicate(Basic.java:101)
>>> at
>>> com.hp.hpl.jena.xmloutput.impl.Basic.writeRDFStatements(Basic.java:77)
>>> at
>>> com.hp.hpl.jena.xmloutput.impl.Basic.writeRDFStatements(Basic.java:66)
>>> at com.hp.hpl.jena.xmloutput.impl.Basic.writeBody(Basic.java:40)
>>> at
>>>
>> com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.writeXMLBody(BaseXMLWriter.java:500)
>>> at
>>>
>> com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.write(BaseXMLWriter.java:472)
>>> at
>>>
>> com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.write(BaseXMLWriter.java:458)
>>> at
>> com.hp.hpl.jena.rdf.model.impl.ModelCom.write(ModelCom.java:271)
>>> at
>>>
>> org.apache.stanbol.owl.transformation.JenaToClerezzaConverter.jenaModelToClerezzaMGraph(JenaToClerezzaConverter.java:89)
>>> at
>>>
>> org.apache.stanbol.rules.refactor.impl.RefactorerImpl.kReSCoreOperation(RefactorerImpl.java:237)
>>> at
>>>
>> org.apache.stanbol.rules.refactor.impl.RefactorerImpl.ontologyRefactoring(RefactorerImpl.java:392)
>>> at
>>>
>> org.apache.stanbol.enhancer.engines.refactor.RefactorEnhancementEngine.computeEnhancements(RefactorEnhancementEngine.java:348)
>>> at
>>>
>> org.apache.stanbol.enhancer.jobmanager.impl.WeightedJobManager.enhanceContent(WeightedJobManager.java:80)
>>> at
>>>
>> org.apache.stanbol.enhancer.jersey.resource.EnginesRootResource.enhanceAndBuildResponse(EnginesRootResource.java:175)
>>> at
>>>
>> org.apache.stanbol.enhancer.jersey.resource.EnginesRootResource.enhanceFromForm(EnginesRootResource.java:139)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> (...)
>>>
>>> Ciao,
>>> David
>>>
>>>
>>> --
>>> David Riccitelli
>>>
>>>
>> ********************************************************************************
>>> InsideOut10 s.r.l.
>>> P.IVA: IT-11381771002
>>> Fax: +39 0110708239
>>> ---
>>> LinkedIn: http://it.linkedin.com/in/riccitelli
>>> Twitter: ziodave
>>> ---
>>> Layar Partner Network<
>> http://www.layar.com/publishing/developers/list/?page=1&country=&city=&keyword=insideout10&lpn=1
>>>
>>>
>> ********************************************************************************
>>
>>
>>
>
>
> --
> David Riccitelli
>
> ********************************************************************************
> InsideOut10 s.r.l.
> P.IVA: IT-11381771002
> Fax: +39 0110708239
> ---
> LinkedIn: http://it.linkedin.com/in/riccitelli
> Twitter: ziodave
> ---
> Layar Partner Network<http://www.layar.com/publishing/developers/list/?page=1&country=&city=&keyword=insideout10&lpn=1>
> ********************************************************************************
Re: error in refactor
Posted by David Riccitelli <da...@insideout.io>.
Hi Andrea,
This is the list:
[1] org.apache.stanbol.enhancer.engines.metaxa.MetaxaEngine
[3] org.apache.stanbol.enhancer.engines.langid.LangIdEnhancementEngine
[3] org.apache.stanbol.enhancer.engines.opennlp.impl.NamedEntityExtractionEnhancementEngine
[4] org.apache.stanbol.enhancer.engines.entitytagging.impl.NamedEntityTaggingEngine
[5] org.apache.stanbol.enhancer.engines.entitytagging.impl.NamedEntityTaggingEngine
[6] org.apache.stanbol.enhancer.engines.refactor.RefactorEnhancementEngine
[7] org.apache.stanbol.enhancer.engines.opencalais.impl.OpenCalaisEngine
[8] org.apache.stanbol.enhancer.engines.zemanta.impl.ZemantaEnhancementEngine
[9] org.apache.stanbol.enhancer.engines.geonames.impl.LocationEnhancementEngine
I can't remember exactly which text I was testing and I erased the old log
file :-S
David
On Wed, Jan 18, 2012 at 2:12 PM, Andrea Giovanni Nuzzolese <
nuzzoles@cs.unibo.it> wrote:
> Hi David, all,
>
> may I have the complete list of enhancement engines you used and the text
> you submitted to the Enhancer and the rules you used?
> Because, with "Méditerranée" and my configuration of the enhancer
> everything works properly and I am not able to reproduce the error.
>
> Best.
> Andrea
>
> By the way, the error itself is clear as the URI <http://M%C3%A9diterran%C3%A9es>
> is not well formed
> On Jan 18, 2012, at 9:38 AM, David Riccitelli wrote:
>
> > Hello,
> >
> > I'm performing an analysis of a text using the refactor engine.
> Eventually
> > the analysis fails with the following exception. It seems that the
> > 'Méditerranées' is looked as a DNS name, and the exception is not
> trapped.
> >
> > I added these lines of code to log the exception but continue the
> > processing:
> > ----
> > file:
> rules/refactor/src/main/java/org/apache/stanbol/rules/refactor/impl/RefactorerImpl.java
> > ----
> > 391 case KReSCore:
> > 392 try {
> > 393 if (mGraph instanceof MGraph)
> > constructedGraph = kReSCoreOperation(sparql,
> > 394 (MGraph) mGraph);
> > 395 } catch (Exception ex) {
> > 396 log.error("An exception occurred:
> [{}]
> > {}",ex.getClass(),ex.getMessage());
> > 397 }
> > 398 break;
> > ----
> >
> >
> > 18.01.2012 08:31:37.212 *WARN* [1160165988@qtp-2071272094-0]
> > org.apache.felix.http.jetty /engines
> > (com.hp.hpl.jena.shared.BadURIException: Only well-formed absolute
> URIrefs
> > can be included in RDF/XML output: <http://M%C3%A9diterran%C3%A9es>
> Code:
> > 28/NOT_DNS_NAME in HOST: The host component did not meet the restrictions
> > on DNS names.) com.hp.hpl.jena.shared.BadURIException: Only well-formed
> > absolute URIrefs can be included in RDF/XML output:
> > <http://M%C3%A9diterran%C3%A9es>
> > Code: 28/NOT_DNS_NAME in HOST: The host component did not meet the
> > restrictions on DNS names.
> > at
> >
> com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.checkURI(BaseXMLWriter.java:829)
> > at
> >
> com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.relativize(BaseXMLWriter.java:806)
> > at
> >
> com.hp.hpl.jena.xmloutput.impl.Basic.writeResourceReference(Basic.java:148)
> > at
> > com.hp.hpl.jena.xmloutput.impl.Basic.writePredicate(Basic.java:101)
> > at
> > com.hp.hpl.jena.xmloutput.impl.Basic.writeRDFStatements(Basic.java:77)
> > at
> > com.hp.hpl.jena.xmloutput.impl.Basic.writeRDFStatements(Basic.java:66)
> > at com.hp.hpl.jena.xmloutput.impl.Basic.writeBody(Basic.java:40)
> > at
> >
> com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.writeXMLBody(BaseXMLWriter.java:500)
> > at
> >
> com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.write(BaseXMLWriter.java:472)
> > at
> >
> com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.write(BaseXMLWriter.java:458)
> > at
> com.hp.hpl.jena.rdf.model.impl.ModelCom.write(ModelCom.java:271)
> > at
> >
> org.apache.stanbol.owl.transformation.JenaToClerezzaConverter.jenaModelToClerezzaMGraph(JenaToClerezzaConverter.java:89)
> > at
> >
> org.apache.stanbol.rules.refactor.impl.RefactorerImpl.kReSCoreOperation(RefactorerImpl.java:237)
> > at
> >
> org.apache.stanbol.rules.refactor.impl.RefactorerImpl.ontologyRefactoring(RefactorerImpl.java:392)
> > at
> >
> org.apache.stanbol.enhancer.engines.refactor.RefactorEnhancementEngine.computeEnhancements(RefactorEnhancementEngine.java:348)
> > at
> >
> org.apache.stanbol.enhancer.jobmanager.impl.WeightedJobManager.enhanceContent(WeightedJobManager.java:80)
> > at
> >
> org.apache.stanbol.enhancer.jersey.resource.EnginesRootResource.enhanceAndBuildResponse(EnginesRootResource.java:175)
> > at
> >
> org.apache.stanbol.enhancer.jersey.resource.EnginesRootResource.enhanceFromForm(EnginesRootResource.java:139)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > (...)
> >
> > Ciao,
> > David
> >
> >
> > --
> > David Riccitelli
> >
> >
> ********************************************************************************
> > InsideOut10 s.r.l.
> > P.IVA: IT-11381771002
> > Fax: +39 0110708239
> > ---
> > LinkedIn: http://it.linkedin.com/in/riccitelli
> > Twitter: ziodave
> > ---
> > Layar Partner Network<
> http://www.layar.com/publishing/developers/list/?page=1&country=&city=&keyword=insideout10&lpn=1
> >
> >
> ********************************************************************************
>
>
>
--
David Riccitelli
********************************************************************************
InsideOut10 s.r.l.
P.IVA: IT-11381771002
Fax: +39 0110708239
---
LinkedIn: http://it.linkedin.com/in/riccitelli
Twitter: ziodave
---
Layar Partner Network<http://www.layar.com/publishing/developers/list/?page=1&country=&city=&keyword=insideout10&lpn=1>
********************************************************************************
Re: error in refactor
Posted by Andrea Giovanni Nuzzolese <nu...@cs.unibo.it>.
Hi David, all,
may I have the complete list of enhancement engines you used and the text you submitted to the Enhancer and the rules you used?
Because, with "Méditerranée" and my configuration of the enhancer everything works properly and I am not able to reproduce the error.
Best.
Andrea
By the way, the error itself is clear as the URI <http://M%C3%A9diterran%C3%A9es> is not well formed
On Jan 18, 2012, at 9:38 AM, David Riccitelli wrote:
> Hello,
>
> I'm performing an analysis of a text using the refactor engine. Eventually
> the analysis fails with the following exception. It seems that the
> 'Méditerranées' is looked as a DNS name, and the exception is not trapped.
>
> I added these lines of code to log the exception but continue the
> processing:
> ----
> file: rules/refactor/src/main/java/org/apache/stanbol/rules/refactor/impl/RefactorerImpl.java
> ----
> 391 case KReSCore:
> 392 try {
> 393 if (mGraph instanceof MGraph)
> constructedGraph = kReSCoreOperation(sparql,
> 394 (MGraph) mGraph);
> 395 } catch (Exception ex) {
> 396 log.error("An exception occurred: [{}]
> {}",ex.getClass(),ex.getMessage());
> 397 }
> 398 break;
> ----
>
>
> 18.01.2012 08:31:37.212 *WARN* [1160165988@qtp-2071272094-0]
> org.apache.felix.http.jetty /engines
> (com.hp.hpl.jena.shared.BadURIException: Only well-formed absolute URIrefs
> can be included in RDF/XML output: <http://M%C3%A9diterran%C3%A9es> Code:
> 28/NOT_DNS_NAME in HOST: The host component did not meet the restrictions
> on DNS names.) com.hp.hpl.jena.shared.BadURIException: Only well-formed
> absolute URIrefs can be included in RDF/XML output:
> <http://M%C3%A9diterran%C3%A9es>
> Code: 28/NOT_DNS_NAME in HOST: The host component did not meet the
> restrictions on DNS names.
> at
> com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.checkURI(BaseXMLWriter.java:829)
> at
> com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.relativize(BaseXMLWriter.java:806)
> at
> com.hp.hpl.jena.xmloutput.impl.Basic.writeResourceReference(Basic.java:148)
> at
> com.hp.hpl.jena.xmloutput.impl.Basic.writePredicate(Basic.java:101)
> at
> com.hp.hpl.jena.xmloutput.impl.Basic.writeRDFStatements(Basic.java:77)
> at
> com.hp.hpl.jena.xmloutput.impl.Basic.writeRDFStatements(Basic.java:66)
> at com.hp.hpl.jena.xmloutput.impl.Basic.writeBody(Basic.java:40)
> at
> com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.writeXMLBody(BaseXMLWriter.java:500)
> at
> com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.write(BaseXMLWriter.java:472)
> at
> com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.write(BaseXMLWriter.java:458)
> at com.hp.hpl.jena.rdf.model.impl.ModelCom.write(ModelCom.java:271)
> at
> org.apache.stanbol.owl.transformation.JenaToClerezzaConverter.jenaModelToClerezzaMGraph(JenaToClerezzaConverter.java:89)
> at
> org.apache.stanbol.rules.refactor.impl.RefactorerImpl.kReSCoreOperation(RefactorerImpl.java:237)
> at
> org.apache.stanbol.rules.refactor.impl.RefactorerImpl.ontologyRefactoring(RefactorerImpl.java:392)
> at
> org.apache.stanbol.enhancer.engines.refactor.RefactorEnhancementEngine.computeEnhancements(RefactorEnhancementEngine.java:348)
> at
> org.apache.stanbol.enhancer.jobmanager.impl.WeightedJobManager.enhanceContent(WeightedJobManager.java:80)
> at
> org.apache.stanbol.enhancer.jersey.resource.EnginesRootResource.enhanceAndBuildResponse(EnginesRootResource.java:175)
> at
> org.apache.stanbol.enhancer.jersey.resource.EnginesRootResource.enhanceFromForm(EnginesRootResource.java:139)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> (...)
>
> Ciao,
> David
>
>
> --
> David Riccitelli
>
> ********************************************************************************
> InsideOut10 s.r.l.
> P.IVA: IT-11381771002
> Fax: +39 0110708239
> ---
> LinkedIn: http://it.linkedin.com/in/riccitelli
> Twitter: ziodave
> ---
> Layar Partner Network<http://www.layar.com/publishing/developers/list/?page=1&country=&city=&keyword=insideout10&lpn=1>
> ********************************************************************************