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

JSON-LD link open the extension in a new tab #9

Open
Manu1400 opened this issue Sep 9, 2017 · 2 comments
Open

JSON-LD link open the extension in a new tab #9

Manu1400 opened this issue Sep 9, 2017 · 2 comments

Comments

@Manu1400
Copy link

Manu1400 commented Sep 9, 2017

Hi,

I used the extension "OpenLink Structured Data Sniffer" (in version 2.15.2) on Google Chrome.

1/ Open the webpage https://psh.techlib.cz/skos/PSH13814 in Google Chrome
2/ Click on the link "Heslo ve formátu JSON-LD" (with your mouse) in left column
3/ A new tab is opened (and have focus) : chrome-extension://egdaiaihbdoiibopledjahjaihbmjhdj/page_panel.html?url=https%3A%2F%2Fpsh.techlib.cz%2Fapi%2Fconcepts%2FPSH13814%3Fformat%3Denriched&type=jsonld&ext=
4/ On the other browser tab, the json-ld in displayed but the extension don't work.

Settings of the extension : defaults settings

Expectation: -

Reality: The new tab is opened with a "JSON-LD" empty tab.

Thanks for this greatfull extension.

@Manu1400
Copy link
Author

Manu1400 commented Sep 9, 2017

More quickly step(s):
1/ In a new tab, open https://psh.techlib.cz/api/concepts/PSH13814?format=enriched

Reality: an other tab is displayed.

The GET request https://psh.techlib.cz/api/concepts/PSH13814?format=enriched have in respond :
Content-Type:application/ld+json

@BigBlueHat
Copy link

@Manu1400 the context file referenced from those data document is invalid. The http://psh.techlib.cz/api/context.json file should be rewritten to be an object with a @context key with the context information as it's value--i.e. it should not be a "bare" JSON object.

The response for the @context right now looks like (trimmed for length):

{
  "@base": "http://psh.techlib.cz/skos/",
  "@vocab": "http://www.w3.org/2004/02/skos/core#",
  "alephSysno": null,
  "altLabel": {
    "@container": "@language"
  }
}

It should instead be:

{
  "@context": {
    "@base": "http://psh.techlib.cz/skos/",
    "@vocab": "http://www.w3.org/2004/02/skos/core#",
    "alephSysno": null,
    "altLabel": {
      "@container": "@language"
    }
  }
}

I'll reach out to those developers also in hopes that they can fix it.

Hope that helps!
🎩

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

2 participants