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

size with type @id ? #160

Open
umbreak opened this issue Aug 10, 2018 · 1 comment
Open

size with type @id ? #160

umbreak opened this issue Aug 10, 2018 · 1 comment

Comments

@umbreak
Copy link

umbreak commented Aug 10, 2018

I think there is something wrong here.

  1. emptycollection schema defined schema:size constrained as xsd:integer
  2. the context on neurosciencegraph links to the context on schemaorg which defines size as follows
    "size": {
      "@type": "@id",
      "@id": "schema:size"
    }

I think size won't have an @id value...

You should be seeing an error when executing this test. However the workbench doesn't signal it properly.

The error happens before the validator kicks in, when trying to convert the triples into a Jena Model: Exception: Illegal character in path at index 1: A non numeric size. This is Just Jena saying that a field expected to have a @type of @id cannot have this character (space).

@MFSY
Copy link
Contributor

MFSY commented Aug 13, 2018

Hi,
size should definitely not be defined as being of type @id.

Good catch.

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