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

Deserialize object as plain identifier object property value #5

Closed
ledsoft opened this issue Feb 3, 2018 · 1 comment
Closed

Deserialize object as plain identifier object property value #5

ledsoft opened this issue Feb 3, 2018 · 1 comment

Comments

@ledsoft
Copy link
Contributor

ledsoft commented Feb 3, 2018

It would be nice to be able to deserialize full blown objects as values of identifier-base object property. For example

{
  "@id": "http://krizik.felk.cvut.cz/ontologies/jb4jsonld#UNSC",
  "@type": "http://krizik.felk.cvut.cz/ontologies/jb4jsonld/Organization",
  "brands": [
    "Spartan-II",
    "Mjolnir IV"
  ],
  "http://purl.org/dc/terms/created": "Mon Aug 01 10:43:04 CEST 2016",
  "http://www.w3.org/2000/01/rdf-schema#label": "UNSC"
}

Deserialize as value of:

...
@OWLObjectProperty(iri = "http://krizik.felk.cvut.cz/ontologies/jb4jsonld/isMemberOf")
private URI employer;   // Would be http://krizik.felk.cvut.cz/ontologies/jb4jsonld#UNSC
...

This would simulate the application working with a smaller model than that available in the JSON-LD data.

@ledsoft
Copy link
Contributor Author

ledsoft commented Mar 25, 2018

Done in 0.3.1.

@ledsoft ledsoft closed this as completed Mar 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant