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

Error importing JSON-LD file #1190

Open
cristianolongoodhl opened this issue Jan 27, 2024 · 1 comment
Open

Error importing JSON-LD file #1190

cristianolongoodhl opened this issue Jan 27, 2024 · 1 comment

Comments

@cristianolongoodhl
Copy link

I created a file as-audience-examples.jsonld with the following content

{
	"@context":{
		"@base": "http://www.opendatahacklab.org/as-audience-examples#",
		"asaudience": "http://www.opendatahacklab.org/as-audience#"
	},
	"@id": "Alice",
	"@type": "asaudience:Person"
}

With Protege 5.6.3, when I attempt to load this file I got the following error:

ERROR 12:50:03 An error occurred whilst loading the ontology at file:/home/cristiano/papers/AS_audience/as-audience-examples.jsonld. Cause: Not a valid (absolute) IRI: @context

See also #278

@cristianolongoodhl
Copy link
Author

Instead, when the file is an array of objects, as in the following example, all works good.

[
	{
		"@context":{
			"@base": "http://www.opendatahacklab.org/as-audience-examples#",
			"asaudience": "http://www.opendatahacklab.org/as-audience#"
		},
		"@id": "Alice",
		"@type": "asaudience:Person"
	}
]

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

1 participant