Hi Damian,
Thanks for your quick reply.
With regards to the Jena version, it should have read 1.13 (instead of 1.3).
With regards to the JSON-LD output, the current context information is as
follows:
"@context" : {
"identifier" : "http://purl.org/dc/terms/identifier",
"notation" : "http://www.w3.org/2004/02/skos/core#notation",
"source" : "http://purl.org/dc/elements/1.1/source",
"isPartOf" : "http://purl.org/dc/terms/isPartOf",
"prefLabel" : "http://www.w3.org/2004/02/skos/core#prefLabel",
"scopeNote" : "http://www.w3.org/2004/02/skos/core#scopeNote",
"type" : "http://purl.org/dc/elements/1.1/type",
"dc" : "http://purl.org/dc/elements/1.1/",
"rdf" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"skos" : "http://www.w3.org/2004/02/skos/core#",
"dcterms" : "http://purl.org/dc/terms/"
}
As you can see, the context does not include @id as part of the definition
of "isPartOf". The JSON-LD information is created by another Jena-based
application.
Cheers,
Quentin
On 16 July 2015 at 10:55, Damian Steer <[email protected]> wrote:
>
> > On 16 Jul 2015, at 16:17, Quentin Reul <[email protected]> wrote:
> >
> > Hi all,
> >
> > [Sorry for duplicate]
> >
> > As part of one of our projects, we are using Jena 1.3
>
> Are you sure about that version?
>
> > Let us assume that we have the following JSON-LD object:
> >
> > {
> > "@id" : "
> http://data.wolterskluwer.com/au/cch/taxform/2014/CGLS0004#CGLS10",
> > "@type" : "http://onto.wolterskluwer.com/pci/cpe/ProfileItem",
> > "source" : "rvctc3.02.02#DE3233",
> > "identifier" : "CGLS10",
> > "isPartOf" : "
> http://data.wolterskluwer.com/au/cch/taxform/2014/CGLS0004",
> > "notation" : "GZM",
> > "prefLabel" : {
> > "@language" : "en",
> > "@value" : "Tax losses, excluding film losses, transferred after
> > consolidation from a trust."
> > }
> > }
>
> From what you’ve written it sounds like you produced this json-ld from
> java code where the value of isPartOf was a resource (“in the Java code, we
> are encoding
> http://data.wolterskluwer.com/au/cch/taxform/2014/CGLS0004 as a
> resource”). However this isn’t the output I’d expect at all.[1]
>
> Could you explain where this json came from?
>
> Damian
>
> [1] This would work (note the added @context):
>
> {
> "@context" : { "@vocab" : "http://purl.org/dc/terms/", "isPartOf" : {
> "@type": "@id" } },
> "@id" : "
> http://data.wolterskluwer.com/au/cch/taxform/2014/CGLS0004#CGLS10",
> "@type" : "http://onto.wolterskluwer.com/pci/cpe/ProfileItem",
> "source" : "rvctc3.02.02#DE3233",
> "identifier" : "CGLS10",
> "isPartOf" : "http://data.wolterskluwer.com/au/cch/taxform/2014/CGLS0004
> ",
> "notation" : "GZM",
> "prefLabel" : {
> "@language" : "en",
> "@value" : "Tax losses, excluding film losses, transferred after
> consolidation from a trust."
> }
> }
>
> --
> Damian Steer
> Senior Technical Researcher
> Research IT
> +44 (0) 117 928 7057
>
>