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

Adding new prefix from web doesn't work #41

Closed
ecamossi opened this issue Jun 6, 2020 · 5 comments
Closed

Adding new prefix from web doesn't work #41

ecamossi opened this issue Jun 6, 2020 · 5 comments

Comments

@ecamossi
Copy link

ecamossi commented Jun 6, 2020

Hello,

I'm using rdf-extension-1.2.0 with openrefine 3.3. I tried to add dbo prefix but the import from web seems blocked. OK is enabled but doesn't do anything. I don't get any error (popup are enabled), as in the screenshot.
Only Cancel and Advanced seem to work, but forcing the import doesn't produce any change.

addprefix error

I was finally able to add the vocabulary downloading the file (finding out with trial and error what the correct format is) and import it manually.

Is the import from web disabled?

Kind regards,
-Elena

@stkenny
Copy link
Owner

stkenny commented Jun 7, 2020

Hi, it hasn't been disabled, but the number of prefixes that it works for was reduced when I removed any23 to fix dependency problems. It will only work with URLs that return RDF representations. It should return some sort of message though, so I'll look at that. I'll see if it is possible to re-introduce any23.

@stkenny
Copy link
Owner

stkenny commented Jun 27, 2020

Turns out there was an error in the javascript. Should be fixed in https://github.com/stkenny/grefine-rdf-extension/releases/download/v1.2.1-orefine-3.3/rdf-extension-1.2.1-orefine-3.3.zip. Although I'm still unable to get the DBpedia ontology to import.

@pyrog
Copy link

pyrog commented Aug 1, 2020

Same issue: I would add Sophox prefix : see osm2rdf/osmutils.py#L34

Tested with Safari: when pressing the Add prefix button, the javascript console display the following error:

[Error] ReferenceError: Can't find variable: uri
	(fonction anonyme) (project-bundle.js:47814:85)
	(fonction anonyme) (project-bundle.js:31223)
	fire (project-bundle.js:3121)
	fireWith (project-bundle.js:3233)
	done (project-bundle.js:9277)
	callback (project-bundle.js:9687)

Tested with Firefox:

Uncaught ReferenceError: uri is not defined
    show http://127.0.0.1:3333/project-bundle.js:47814
    wrapCSRF http://127.0.0.1:3333/project-bundle.js:31223
    fire http://127.0.0.1:3333/project-bundle.js:3121
    fireWith http://127.0.0.1:3333/project-bundle.js:3233
    done http://127.0.0.1:3333/project-bundle.js:9277
    callback http://127.0.0.1:3333/project-bundle.js:9687

Tested with Chrome:

project-bundle.js:47814 Uncaught ReferenceError: uri is not defined
    at project-bundle.js:47814
    at Object.success (project-bundle.js:31223)
    at fire (project-bundle.js:3121)
    at Object.fireWith [as resolveWith] (project-bundle.js:3233)
    at done (project-bundle.js:9277)
    at XMLHttpRequest.callback (project-bundle.js:9687)

Try to force import:
Add new prefix

Chrome console:

JQMIGRATE: jQuery.fn.attr('checked') may use property instead of attribute
console.trace
  migrateWarn @ project-bundle.js:10357
  jQuery.attr @ project-bundle.js:10469
  jQuery.access @ project-bundle.js:4155
  attr @ project-bundle.js:7897
  (anonymous) @ project-bundle.js:47778
  dispatch @ project-bundle.js:4643
  elemData.handle @ project-bundle.js:4311
  trigger @ project-bundle.js:4552
  jQuery.event.trigger @ project-bundle.js:10807
  (anonymous) @ project-bundle.js:5262
  each @ project-bundle.js:385
  each @ project-bundle.js:138
  trigger @ project-bundle.js:5261
  jQuery.fn.<computed> @ project-bundle.js:8445
  (anonymous) @ project-bundle.js:47845
  dispatch @ project-bundle.js:4643
  elemData.handle @ project-bundle.js:4311
prefix URI
osmroot https://www.openstreetmap.org
osmnode https://www.openstreetmap.org/node/
osmway https://www.openstreetmap.org/way/
osmrel https://www.openstreetmap.org/relation/
osmt https://wiki.openstreetmap.org/wiki/Key:
osmm https://www.openstreetmap.org/meta/

Note: Sophox is the SPARL engine for OpenStreetMap

@pyrog
Copy link

pyrog commented Aug 1, 2020

Could add prefix one by one with Advanced…

osm prefix.ttl file

@prefix osmroot: <https://www.openstreetmap.org>.
@prefix osmnode: <https://www.openstreetmap.org/node/>.
@prefix osmway: <https://www.openstreetmap.org/way/>.
@prefix osmrel: <https://www.openstreetmap.org/relation/>.
@prefix osmm: <https://www.openstreetmap.org/meta/>.
@prefix osmt: <https://wiki.openstreetmap.org/wiki/Key:>.

The following step must be repeated for each prefix 😞

Add new prefix (advanced)

@stkenny
Copy link
Owner

stkenny commented Nov 21, 2020

Any23 has been added back in 1.3.0. Vocab import should work better now.

@stkenny stkenny closed this as completed Nov 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants