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

ScalaJsTest get no results when trying reach a url file. #130

Open
ofilangi opened this issue Jul 23, 2021 · 1 comment
Open

ScalaJsTest get no results when trying reach a url file. #130

ofilangi opened this issue Jul 23, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ofilangi
Copy link
Collaborator

Fix126UrlFileUnusedVariable
does not work.

work well in browser side

<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/p2m2/discovery@unused_var_126/dist/discovery-web.min.js"> </script> 
<script>

let config = SWDiscoveryConfiguration.setConfigString(`
          {
          "sources" : [{
		  "id"        : "file_metabo",
		  "url"       : "http://localhost:8080/animals_basic.ttl",
		  "mimetype"  : "text/turtle"
           }],
          "settings" : {
           "logLevel" : "all"
           }
           }
          `)
SWDiscovery(config)
          .prefix("ns0","http://www.some-ficticious-zoo.com/rdf#")
          .something("animal")
          .datatype("ns0:name","name")
          .select("animal","name")
          .console()
          .commit().raw().then((response) => {
		 console.log(JSON.stringify(response) );
	  }).catch( (error) => {
	         console.error(" -- catch exception --")
	         console.error(error)
	  } );

</script>
@ofilangi ofilangi added the bug Something isn't working label Jul 23, 2021
@ofilangi ofilangi self-assigned this Jul 23, 2021
@ofilangi
Copy link
Collaborator Author

import a missing comunica library

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
Development

No branches or pull requests

1 participant