Title: @type is written as expanded IRI when using a class declared in the dataset · Issue #329 · jsonld-java/jsonld-java · GitHub
Open Graph Title: @type is written as expanded IRI when using a class declared in the dataset · Issue #329 · jsonld-java/jsonld-java
X Title: @type is written as expanded IRI when using a class declared in the dataset · Issue #329 · jsonld-java/jsonld-java
Description: Via eclipse-rdf4j/rdf4j#3643 Using 0.13.4, when I have a RDFDataset that has a statement declaring a Class and another statement declaring an individual of that class, the individual has the incorrect rdf:type. JsonLdOptions opts = new J...
Open Graph Description: Via eclipse-rdf4j/rdf4j#3643 Using 0.13.4, when I have a RDFDataset that has a statement declaring a Class and another statement declaring an individual of that class, the individual has the incorr...
X Description: Via eclipse-rdf4j/rdf4j#3643 Using 0.13.4, when I have a RDFDataset that has a statement declaring a Class and another statement declaring an individual of that class, the individual has the incorr...
Opengraph URL: https://github.com/jsonld-java/jsonld-java/issues/329
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@type is written as expanded IRI when using a class declared in the dataset","articleBody":"Via https://github.com/eclipse/rdf4j/issues/3643\r\n\r\nUsing 0.13.4, when I have a RDFDataset that has a statement declaring a Class and another statement declaring an individual of that class, the individual has the incorrect rdf:type.\r\n\r\n```\r\n JsonLdOptions opts = new JsonLdOptions();\r\n opts.setUseRdfType(Boolean.FALSE);\r\n\r\n RDFDataset rdf = new RDFDataset();\r\n rdf.addTriple(\r\n \"http://test.com/ontology#Class1\",\r\n \"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\",\r\n \"http://www.w3.org/2002/07/owl#Class\");\r\n rdf.addTriple(\r\n \"http://test.com/ontology#Individual1\",\r\n \"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\",\r\n \"http://test.com/ontology#Class1\");\r\n\r\n System.out.println(JsonUtils.toPrettyString(new JsonLdApi(opts).fromRDF(rdf)));\r\n```\r\nproduces:\r\n```\r\n[ {\r\n \"@id\" : \"http://test.com/ontology#Class1\",\r\n \"@type\" : [ \"http://www.w3.org/2002/07/owl#Class\" ]\r\n}, {\r\n \"@id\" : \"http://test.com/ontology#Individual1\",\r\n \"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\" : [ {\r\n \"@id\" : \"http://test.com/ontology#Class1\"\r\n } ]\r\n} ]\r\n```\r\n\r\n\r\nI would expect the format of the individual to be:\r\n```\r\n{\r\n \"@id\" : \"http://test.com/ontologyIndividual1\",\r\n \"@type\" : [ \"http://test.com/ontology#Class1\" ]\r\n}\r\n```","author":{"url":"https://github.com/daltontc","@type":"Person","name":"daltontc"},"datePublished":"2022-01-25T22:51:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/329/jsonld-java/issues/329"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0710192e-6dac-cf30-d636-993de2d8d11d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E13A:1C9B38:948ABE:CF67B4:6971ED14 |
| html-safe-nonce | 43633773e1b65d0a83b20ae2940ba5f3f629d289ea3eaff88fae71f2564ffdd7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTNBOjFDOUIzODo5NDhBQkU6Q0Y2N0I0OjY5NzFFRDE0IiwidmlzaXRvcl9pZCI6IjI3OTIwNzgxNTI2NDM1MDU0MjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 88b925c098c913e54d36c329548f6848ca0f0945091a0ad7a8012748da3904e2 |
| hovercard-subject-tag | issue:1114440473 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/jsonld-java/jsonld-java/329/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9b8a4f0196bd0416c0797a768c56596c871630b906f5c35f6e03ce5b45409785/jsonld-java/jsonld-java/issues/329 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9b8a4f0196bd0416c0797a768c56596c871630b906f5c35f6e03ce5b45409785/jsonld-java/jsonld-java/issues/329 |
| og:image:alt | Via eclipse-rdf4j/rdf4j#3643 Using 0.13.4, when I have a RDFDataset that has a statement declaring a Class and another statement declaring an individual of that class, the individual has the incorr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | daltontc |
| hostname | github.com |
| expected-hostname | github.com |
| None | 683712716975b3393656edf09255a1d488d0e68ab7b9ac97e40ecf40036f696c |
| turbo-cache-control | no-preview |
| go-import | github.com/jsonld-java/jsonld-java git https://github.com/jsonld-java/jsonld-java.git |
| octolytics-dimension-user_id | 4359856 |
| octolytics-dimension-user_login | jsonld-java |
| octolytics-dimension-repository_id | 2988730 |
| octolytics-dimension-repository_nwo | jsonld-java/jsonld-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2988730 |
| octolytics-dimension-repository_network_root_nwo | jsonld-java/jsonld-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ed99da4e2de688dd1056894c1eccd4c82c6bbbfe |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width