sszuev / ont-converter Goto Github PK
View Code? Open in Web Editor NEWA jvm tool to convert any rdf-ontology to owl2-ontology
A jvm tool to convert any rdf-ontology to owl2-ontology
It would be nice, if there was some hint in the README on how to locally built the .jar file.
full error message:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.github.sszuev:ont-converter >-------------------
[INFO] Building ont-converter 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for ru.avicomp:ontapi:jar:1.4.0-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.836 s
[INFO] Finished at: 2022-03-24T16:45:38Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ont-converter: Could not resolve dependencies for project com.github.sszuev:ont-converter:jar:1.0-SNAPSHOT: Failure to find ru.avicomp:ontapi:jar:1.4.0-SNAPSHOT in https://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of snapshots-repo has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
Is this a problem at my end or is there an issue with this dependency?
support for jena-csv and topbraid-spin is present in v1.
but both libraries are now deprecated, so I don't like much the idea of reanimating that code in v2,
on the other hand if these functionalities (or any of them) are really in use, the support should be returned back.
Can anyone who uses this tool clarify the issue?
Tried the 1.0 release on some small DBpedia ABox dataset and got an exception due to a custom datatype (I guess):
dummy.nt
):<http://dbpedia.org/resource/Belgium> <http://dbpedia.org/ontology/PopulatedPlace/populationDensity> "363.6"^^<http://dbpedia.org/datatype/inhabitantsPerSquareKilometre> .
<http://dbpedia.org/resource/Belgium> <http://dbpedia.org/ontology/PopulatedPlace/populationDensity> "363.58468065625044"^^<http://dbpedia.org/datatype/inhabitantsPerSquareKilometre> .
<http://dbpedia.org/resource/London> <http://dbpedia.org/ontology/PopulatedPlace/populationDensity> "5518.0"^^<http://dbpedia.org/datatype/inhabitantsPerSquareKilometre> .
java -jar ont-converter.jar -i dummy.nt -o dummy.owl -of MANCHESTER_SYNTAX
Exception in thread "main" org.apache.jena.ontology.ConversionException: Can't wrap node http://dbpedia.org/datatype/inhabitantsPerSquareKilometre to class ru.avicomp.ontapi.jena.impl.OntDatatypeImpl
at ru.avicomp.ontapi.jena.impl.conf.CommonOntObjectFactory.wrap(CommonOntObjectFactory.java:61)
at org.apache.jena.enhanced.EnhNode.convertTo(EnhNode.java:152)
at org.apache.jena.enhanced.EnhNode.convertTo(EnhNode.java:31)
at org.apache.jena.enhanced.Polymorphic.asInternal(Polymorphic.java:62)
at org.apache.jena.enhanced.EnhNode.as(EnhNode.java:107)
at ru.avicomp.ontapi.internal.NoCacheDataFactory.get(NoCacheDataFactory.java:135)
at ru.avicomp.ontapi.internal.DataPropertyAssertionTranslator.toAxiom(DataPropertyAssertionTranslator.java:63)
at ru.avicomp.ontapi.internal.AxiomTranslator.lambda$translate$0(AxiomTranslator.java:93)
at org.apache.jena.util.iterator.Map1Iterator.next(Map1Iterator.java:46)
at java.util.Iterator.forEachRemaining(Iterator.java:116)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566)
at ru.avicomp.ontapi.internal.InternalModel$ObjectTriplesMap.create(InternalModel.java:809)
at ru.avicomp.ontapi.internal.InternalModel.readAxiomTriples(InternalModel.java:595)
at ru.avicomp.ontapi.internal.InternalModel.readObjectTriples(InternalModel.java:559)
at com.github.benmanes.caffeine.cache.BoundedLocalCache$BoundedLocalLoadingCache.lambda$new$0(BoundedLocalCache.java:3366)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$doComputeIfAbsent$14(BoundedLocalCache.java:2039)
at java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1853)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.doComputeIfAbsent(BoundedLocalCache.java:2037)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.computeIfAbsent(BoundedLocalCache.java:2020)
at com.github.benmanes.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:112)
at com.github.benmanes.caffeine.cache.LocalLoadingCache.get(LocalLoadingCache.java:67)
at ru.avicomp.ontapi.internal.InternalModel.getAxiomTripleStore(InternalModel.java:539)
at ru.avicomp.ontapi.internal.InternalModel.lambda$listOWLAxioms$10(InternalModel.java:443)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:313)
at java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:743)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566)
at ru.avicomp.ontapi.internal.InternalModel.readOWLObjects(InternalModel.java:307)
at com.github.benmanes.caffeine.cache.BoundedLocalCache$BoundedLocalLoadingCache.lambda$new$0(BoundedLocalCache.java:3366)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$doComputeIfAbsent$14(BoundedLocalCache.java:2039)
at java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1853)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.doComputeIfAbsent(BoundedLocalCache.java:2037)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.computeIfAbsent(BoundedLocalCache.java:2020)
at com.github.benmanes.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:112)
at com.github.benmanes.caffeine.cache.LocalLoadingCache.get(LocalLoadingCache.java:67)
at ru.avicomp.ontapi.internal.InternalModel.listOWLObjects(InternalModel.java:293)
at ru.avicomp.ontapi.internal.InternalModel.listOWLAnnotationProperties(InternalModel.java:272)
at ru.avicomp.ontapi.OntBaseModelImpl.annotationPropertiesInSignature(OntBaseModelImpl.java:258)
at org.semanticweb.owlapi.manchestersyntax.renderer.ManchesterOWLSyntaxFrameRenderer.writeOntology(ManchesterOWLSyntaxFrameRenderer.java:252)
at org.semanticweb.owlapi.manchestersyntax.renderer.ManchesterSyntaxStorer.storeOntology(ManchesterSyntaxStorer.java:39)
at org.semanticweb.owlapi.util.AbstractOWLStorer.store(AbstractOWLStorer.java:85)
at org.semanticweb.owlapi.util.AbstractOWLStorer.storeOntology(AbstractOWLStorer.java:72)
at org.semanticweb.owlapi.util.AbstractOWLStorer.storeOntology(AbstractOWLStorer.java:111)
at ru.avicomp.ontapi.OntologyManagerImpl.write(OntologyManagerImpl.java:1654)
at ru.avicomp.ontapi.OntologyManagerImpl.saveOntology(OntologyManagerImpl.java:1605)
at ru.avicomp.ontapi.OntologyManagerImpl.saveOntology(OntologyManagerImpl.java:1585)
at com.github.sszuev.Main.save(Main.java:148)
at com.github.sszuev.Main.processFile(Main.java:68)
at com.github.sszuev.Main.process(Main.java:55)
at com.github.sszuev.Main.main(Main.java:47)
Is this not supported yet or already solved in a the newer version of Ont-API? I can see that Ont-Converter still depends on the version 1.4.0-SNAPSHOT
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.