p2m2 / discovery

Discovery provides a powerful toolset for developers who are looking to build UIs using RDF data in an a robust software development process
https://p2m2.github.io/discovery/
MIT License
0 stars 1 forks source link

An error should occurs when prefix is used and missing in prefix list #83

Closed ofilangi closed 3 years ago

ofilangi commented 3 years ago

exemple with :

 var req = SWDiscovery(config)
             .prefix("skos","http://www.w3.org/2004/02/skos/core#")
             .graph("https://forum.semantic-metabolomics.org/EnrichmentAnalysis/CID_MESH/2020")
             .graph("https://forum.semantic-metabolomics.org/EnrichmentAnalysis/CHEBI_MESH/2020")
             .graph("https://forum.semantic-metabolomics.org/EnrichmentAnalysis/CHEMONT_MESH/2020")
              .something("compound")
                 .set("CID:CID33698")
ofilangi commented 3 years ago

ok set(URI("CID:CID33698")) give the error

Virtuoso 37000 Error SP030: SPARQL compiler, line 11: Undefined namespace prefix at 'CID' before '}'

in the other case, the behaviours is ok ("CID:CID33698" is interpreted as a Literal)