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 Literal URI Issue #413

Open
Maatary opened this issue Apr 3, 2019 · 0 comments
Open

Json-LD Literal URI Issue #413

Maatary opened this issue Apr 3, 2019 · 0 comments
Labels

Comments

@Maatary
Copy link

Maatary commented Apr 3, 2019

Hi, i am using the following option to link a Literal URI

Screen Shot 2019-04-03 at 7 58 24 PM

So far in N3 the generation works as expected, however in json-ld it is problematic. I had to specify a context for it to work. In particular i had to add as you can see below, that the property skos:inScheme and skos:topConceptOf link to an Id. Without that it is interpreted as a string, as the json-ld produce a string there rather than an URI

					"skos:prefLabel": {
						"@value": "Kemofam",
						"@language": "en"
					},
					"skos:inScheme": "https://data.elsevier.com/lifescience/taxonomy/pp/brandname/BrandNameScheme",
					"@type": [
						"pp:BrandName"
					],
					"skos:topConceptOf": "https://data.elsevier.com/lifescience/taxonomy/pp/brandname/BrandNameScheme",
					"@context": {
						"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
						"rr": "http://www.w3.org/ns/r2rml#",
						"reaxys": "https://data.elsevier.com/lifescience/schema/reaxys/",
						"owl": "http://www.w3.org/2002/07/owl#",
						"skos": "http://www.w3.org/2004/02/skos/core#",
						"reactiondata": "https://data.elsevier.com/lifescience/schema/reaxys/reactiondata/",
						"skos:inScheme": {
							"@type": "@id"
						},
						"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
						"xsd": "http://www.w3.org/2001/XMLSchema#",
						"pp": "https://data.elsevier.com/lifescience/schema/pp/",
						"skos:topConceptOf": {
							"@type": "@id"
						},
						"km-dev": "http://isi.edu/integration/karma/dev#"
					},
					"@id": "https://data.elsevier.com/lifescience/taxonomy/pp/brandname/2932"
				}```

I wonder if anyone could point me to the code part that would deal with generating the json-ld, and most importantly, where and how the information  ``IsURI`` or setting the type as ``xsd:anyURI`` would be taken into account so i can propose a pull request on that. 

That is Where in the worksheet (internally) is that information stored ?

Any Idea ? 

My idea is that the context that i am adding should not happen and it should simply be that the json-ld put an URI there i.e. <https://data.elsevier.com/lifescience/taxonomy/pp/brandname/BrandNameScheme>

If you have any suggestion for me to look at that would be great. 

Thank you
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants