diff --git a/README.md b/README.md index 21d384f..99f4dc5 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,9 @@ public class User { @OWLDataProperty(iri = "http://xmlns.com/foaf/0.1/accountName") private String username; + @OWLDataProperty(iri = "http://krizik.felk.cvut.cz/ontologies/jb4jsonld/role") + private Role role; // Role is an enum + @Properties private Map> properties; @@ -57,7 +60,8 @@ public class User { "firstName": "http://xmlns.com/foaf/0.1/firstName", "lastName": "http://xmlns.com/foaf/0.1/lastName", "accountName": "http://xmlns.com/foaf/0.1/accountName", - "isAdmin": "http://krizik.felk.cvut.cz/ontologies/jb4jsonld/isAdmin" + "isAdmin": "http://krizik.felk.cvut.cz/ontologies/jb4jsonld/isAdmin", + "role": "http://krizik.felk.cvut.cz/ontologies/jb4jsonld/role" }, "@id": "http://krizik.felk.cvut.cz/ontologies/jb4jsonld#Catherine+Halsey", "@type": [ @@ -68,7 +72,8 @@ public class User { "isAdmin": true, "accountName": "halsey@unsc.org", "firstName": "Catherine", - "lastName": "Halsey" + "lastName": "Halsey", + "role": "USER" } ``` diff --git a/pom.xml b/pom.xml index 1702285..1305215 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ cz.cvut.kbss.jsonld jb4jsonld - 0.5.0 + 0.5.1 JB4JSON-LD Java Binding for JSON-LD allows serialization and deserialization of Java POJOs to/from JSON-LD. This is the core implementation, which has to be integrated with Jackson, Jersey etc. @@ -18,7 +18,7 @@ 1.8 1.8 - 0.13.5 + 0.14.0 5.6.0 2.28.2