Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotation Error related to oneOf PropertyValues #65

Open
giraygi opened this issue Oct 1, 2024 · 1 comment
Open

Annotation Error related to oneOf PropertyValues #65

giraygi opened this issue Oct 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@giraygi
Copy link
Collaborator

giraygi commented Oct 1, 2024

Describe the bug
The error originates in annotateRelated_Class_subClassOf_Restriction_someValuesFrom_oneOf method.

To Reproduce
It is seen in the rdf2json step of fibo ontology.

Expected behavior
The ontology should be ingested with all its data.

Screenshots

exception log 20:07:28.582 [main] INFO u.a.e.r.a.InverseOfAnnotator - annotate inverseOf: 0 20:07:28.597 [main] INFO u.a.e.r.a.NegativePropertyAssertionAnnotator - annotate negative property assertions: 0 20:07:28.612 [main] INFO u.a.e.r.a.OboSynonymTypeNameAnnotator - annotate obo synonym type names: 0 20:07:28.645 [main] INFO u.a.e.r.a.DirectParentsAnnotator - annotate direct parents: 0 java.lang.ClassCastException: class uk.ac.ebi.rdf2json.properties.PropertyValueLiteral cannot be cast to class uk.ac.ebi.rdf2json.properties.PropertyValueURI (uk.ac.ebi.rdf2json.properties.PropertyValueLiteral and uk.ac.ebi.rdf2json.properties.PropertyValueURI are in unnamed module of loader 'app') at uk.ac.ebi.rdf2json.annotators.RelatedAnnotator.lambda$annotateRelated_Class_subClassOf_Restriction_someValuesFrom_oneOf$2(RelatedAnnotator.java:218) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) at uk.ac.ebi.rdf2json.annotators.RelatedAnnotator.annotateRelated_Class_subClassOf_Restriction_someValuesFrom_oneOf(RelatedAnnotator.java:219) at uk.ac.ebi.rdf2json.annotators.RelatedAnnotator.annotateRelated_Class_subClassOf_Restriction_someValuesFrom(RelatedAnnotator.java:194) at uk.ac.ebi.rdf2json.annotators.RelatedAnnotator.annotateRelated_Class_subClassOf_Restriction(RelatedAnnotator.java:149) at uk.ac.ebi.rdf2json.annotators.RelatedAnnotator.annotateRelated(RelatedAnnotator.java:52) at uk.ac.ebi.rdf2json.OntologyGraph.(OntologyGraph.java:307) at uk.ac.ebi.rdf2json.RDF2JSON.main(RDF2JSON.java:152)
@giraygi giraygi added the bug Something isn't working label Oct 1, 2024
giraygi added a commit that referenced this issue Oct 1, 2024
@giraygi
Copy link
Collaborator Author

giraygi commented Oct 7, 2024

fibo can only be ingested by disabling the 307th line in OntologyGraph.java which is RelatedAnnotator.annotateRelated(this);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant