[ 
https://issues.apache.org/jira/browse/STANBOL-98?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Concetto Elvio Bonafede resolved STANBOL-98.
--------------------------------------------

    Resolution: Fixed

There was two problems, one in the class test XMLReengineerTest (the exception 
due to an ontology already existent) and the other in the class XSDExtractor 
(the exception due to Schema Data Type).

For the first problem has been changed the IRI from outputIRI to 
outputIRI+"_new":

xmlExtractor.dataReengineering(graphNS, 
IRI.create(outputIRI.toString()+"_new"), dataSource, schemaOntology);

For the second problem the line "short whitespace = 
xsSimpleTypeDefinition.getWhitespace()", sometimes, generates an exception when 
try to get simple type definition for white space.
However, even if there is the exception, the line returns the ZERO value, so in 
the catch block has been added the line "manager.applyChange" with the option 
with ZERO value that is WS_PRESERVE:

manager.applyChange(new AddAxiom(schemaOntology, 
createOWLObjectPropertyAssertionAxiom(factory, XSD_OWL.hasWhitespace, 
simpleType, XSD_OWL.PRESERVE)));

> KReS Semion Reengineer for XML Test Fails
> -----------------------------------------
>
>                 Key: STANBOL-98
>                 URL: https://issues.apache.org/jira/browse/STANBOL-98
>             Project: Stanbol
>          Issue Type: Bug
>          Components: KReS
>         Environment: Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 
> 2010; root:xnu-1504.9.26~3/RELEASE_I386 i386
> Mac OS X 10.6.6 
>            Reporter: Concetto Elvio Bonafede
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running eu.iksproject.kres.semion.reengineer.xml.XMLReengineerTest
> Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.138 sec <<< 
> FAILURE!
> Results :
> Tests in error: 
>   
> dataReengineeringTest(eu.iksproject.kres.semion.reengineer.xml.XMLReengineerTest)
>   
> reengineeringTest(eu.iksproject.kres.semion.reengineer.xml.XMLReengineerTest)
>   
> schemaReengineeringTest(eu.iksproject.kres.semion.reengineer.xml.XMLReengineerTest)
> Tests run: 3, Failures: 0, Errors: 3, Skipped: 0

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to