-
Notifications
You must be signed in to change notification settings - Fork 34
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
Sparnatural config src could take an ontology string #552
Comments
It in fact seems like my minified .js is going through the right builder, though I don't have the same result while getting the config as a ttl string or getting the config via an API call that gives me that same ttl I tested with a simple ontology implemented one class and got the following error message :
Example log from the builder
Example ontology ttl string working from API but not from Direct insertion :
|
This is fixed. Passing the string was OK, but the config was always parsed as SHACL, and not OWL. let configString=`
@prefix : <http://example.org/> .
...
`;
sparnatural.setAttribute("src",configString); |
The official documentation https://docs.sparnatural.eu/Javascript-integration.html specifies the following :
src
It would be nice to enable this config to directly take a string of an OWL Turtle or RDF/XML file content, such as we don't have to have a
path/to/file
but simply get a configuration from a whole ontology stringThe text was updated successfully, but these errors were encountered: