TRIPLE-CHIST-ERA / VoIDToJava

Generate a java package for data described using VoID (ReadOnly-ORM for SPARQL)
MIT License
0 stars 2 forks source link

Same class in different namespaces results in duplicate property SPARQL queries #13

Open dssib opened 2 weeks ago

dssib commented 2 weeks ago

I.e. having emi:Taxon and up:Taxon in the same named graph results in duplicate predicates. the final query will therefore be a random choice.

private static final String SKOS_SEMANTICRELATION_TAXON_QUERY = "SELECT ?object WHERE { GRAPH https://purl.org/otl-skos { ?id http://www.w3.org/2004/02/skos/core#semanticRelation ?object . ?object a http://purl.uniprot.org/core/Taxon}}";

private static final String SKOS_SEMANTICRELATION_TAXON_QUERY = "SELECT ?object WHERE { GRAPH https://purl.org/otl-skos { ?id http://www.w3.org/2004/02/skos/core#semanticRelation ?object . ?object a https://purl.org/emi#Taxon}}";