Closed atomcat1978 closed 2 years ago
Thanks for reporting this!
I've found out that we can parse the same jsonld data twice and get the same issue with isomorphism. I'm not sure what is going on, but I have a hunch that is has something to do with the JSON-LD parser.
First thing we need to do is to narrow down the example to something a bit more manageable. Any chance you could help with that?
Would also love to hear about what you are working on over at Deichmann. I've worked with Difi on eInnsyn and with Brreg on Fellesdatakatalog and I think that Veronika @veleda worked with Deichmann at some point.
public static void main(String[] args) throws IOException, InterruptedException {
var json1 = "{\n" +
" \"@graph\": [\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex43\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#WorkRelation\",\n" +
" \"http://data.deichman.no/ontology#hasRelationType\": {\n" +
" \"@id\": \"http://data.deichman.no/relationType#relatedWork\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#work\": {\n" +
" \"@id\": \"_:node1frhft7hex44\"\n" +
" }\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex44\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Work\",\n" +
" \"http://data.deichman.no/ontology#contributor\": {\n" +
" \"@id\": \"_:node1frhft7hex46\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#mainTitle\": \"Summertime\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex46\",\n" +
" \"@type\": [\n" +
" \"http://data.deichman.no/ontology#MainEntry\",\n" +
" \"http://data.deichman.no/ontology#Contribution\"\n" +
" ],\n" +
" \"http://data.deichman.no/ontology#agent\": {\n" +
" \"@id\": \"_:node1frhft7hex45\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#role\": {\n" +
" \"@id\": \"http://data.deichman.no/role#author\"\n" +
" }\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex48\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#WorkRelation\",\n" +
" \"http://data.deichman.no/ontology#hasRelationType\": {\n" +
" \"@id\": \"http://data.deichman.no/relationType#relatedWork\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#work\": {\n" +
" \"@id\": \"_:node1frhft7hex49\"\n" +
" }\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex49\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Work\",\n" +
" \"http://data.deichman.no/ontology#contributor\": {\n" +
" \"@id\": \"_:node1frhft7hex51\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#mainTitle\": \"Summertime\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex5\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Contribution\",\n" +
" \"http://data.deichman.no/ontology#agent\": {\n" +
" \"@id\": \"_:node1frhft7hex4\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#role\": {\n" +
" \"@id\": \"http://data.deichman.no/role#director\"\n" +
" }\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex50\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Person\",\n" +
" \"http://data.deichman.no/ontology#bibsysId\": \"90114178\",\n" +
" \"http://data.deichman.no/ontology#birthYear\": \"1940\",\n" +
" \"http://data.deichman.no/ontology#catalogueName\": \"Coetzee, John M.\",\n" +
" \"http://data.deichman.no/ontology#name\": \"John M. Coetzee\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex51\",\n" +
" \"@type\": [\n" +
" \"http://data.deichman.no/ontology#MainEntry\",\n" +
" \"http://data.deichman.no/ontology#Contribution\"\n" +
" ],\n" +
" \"http://data.deichman.no/ontology#agent\": {\n" +
" \"@id\": \"_:node1frhft7hex50\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#role\": {\n" +
" \"@id\": \"http://data.deichman.no/role#author\"\n" +
" }\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex52\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#WorkRelation\",\n" +
" \"http://data.deichman.no/ontology#hasRelationType\": {\n" +
" \"@id\": \"http://data.deichman.no/relationType#continuationOf\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#work\": {\n" +
" \"@id\": \"_:node1frhft7hex53\"\n" +
" }\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex53\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Work\",\n" +
" \"http://data.deichman.no/ontology#mainTitle\": \"Ungdom\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex54\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Publication\",\n" +
" \"http://data.deichman.no/ontology#contributor\": [\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex57\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex59\"\n" +
" }\n" +
" ],\n" +
" \"http://data.deichman.no/ontology#hasIdentifierInPrimaryCataloguingSource\": \"0135686\",\n" +
" \"http://data.deichman.no/ontology#language\": {\n" +
" \"@id\": \"http://lexvo.org/id/iso639-3/nob\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#publicationOf\": {\n" +
" \"@id\": \"_:node1frhft7hex55\"\n" +
" }\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex55\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Work\",\n" +
" \"http://data.deichman.no/ontology#audience\": {\n" +
" \"@id\": \"http://data.deichman.no/audience#juvenile\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#fictionNonfiction\": {\n" +
" \"@id\": \"http://data.deichman.no/fictionNonfiction#fiction\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#isRelatedTo\": [\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex61\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex66\"\n" +
" }\n" +
" ]\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex56\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Person\",\n" +
" \"http://data.deichman.no/ontology#bibsysId\": \"90389517\",\n" +
" \"http://data.deichman.no/ontology#birthYear\": \"1939\",\n" +
" \"http://data.deichman.no/ontology#catalogueName\": \"Bøhle, Solveig\",\n" +
" \"http://data.deichman.no/ontology#name\": \"Solveig Bøhle\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex57\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Contribution\",\n" +
" \"http://data.deichman.no/ontology#agent\": {\n" +
" \"@id\": \"_:node1frhft7hex56\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#role\": {\n" +
" \"@id\": \"http://data.deichman.no/role#director\"\n" +
" }\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex58\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Person\",\n" +
" \"http://data.deichman.no/ontology#bibsysId\": \"3046139\",\n" +
" \"http://data.deichman.no/ontology#catalogueName\": \"Hellem, Terje\",\n" +
" \"http://data.deichman.no/ontology#name\": \"Terje Hellem\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex59\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Contribution\",\n" +
" \"http://data.deichman.no/ontology#agent\": {\n" +
" \"@id\": \"_:node1frhft7hex58\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#role\": {\n" +
" \"@id\": \"http://data.deichman.no/role#director\"\n" +
" }\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex6\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Person\",\n" +
" \"http://data.deichman.no/ontology#bibsysId\": \"1533887388192\",\n" +
" \"http://data.deichman.no/ontology#catalogueName\": \"Rossing, Paul M.\",\n" +
" \"http://data.deichman.no/ontology#name\": \"Paul M. Rossing\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex60\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Person\",\n" +
" \"http://data.deichman.no/ontology#bibsysId\": \"90148055\",\n" +
" \"http://data.deichman.no/ontology#birthYear\": \"1899\",\n" +
" \"http://data.deichman.no/ontology#catalogueName\": \"White, Elwyn Brooks\",\n" +
" \"http://data.deichman.no/ontology#deathYear\": \"1985\",\n" +
" \"http://data.deichman.no/ontology#name\": \"Elwyn Brooks White\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex61\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#WorkRelation\",\n" +
" \"http://data.deichman.no/ontology#hasRelationType\": {\n" +
" \"@id\": \"http://data.deichman.no/relationType#relatedWork\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#work\": {\n" +
" \"@id\": \"_:node1frhft7hex62\"\n" +
" }\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex62\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Work\",\n" +
" \"http://data.deichman.no/ontology#contributor\": {\n" +
" \"@id\": \"_:node1frhft7hex64\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#mainTitle\": \"Stuart M\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex63\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Person\",\n" +
" \"http://data.deichman.no/ontology#bibsysId\": \"90148055\",\n" +
" \"http://data.deichman.no/ontology#birthYear\": \"1899\",\n" +
" \"http://data.deichman.no/ontology#catalogueName\": \"White, Elwyn Brooks\",\n" +
" \"http://data.deichman.no/ontology#deathYear\": \"1985\",\n" +
" \"http://data.deichman.no/ontology#name\": \"Elwyn Brooks White\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex64\",\n" +
" \"@type\": [\n" +
" \"http://data.deichman.no/ontology#MainEntry\",\n" +
" \"http://data.deichman.no/ontology#Contribution\"\n" +
" ],\n" +
" \"http://data.deichman.no/ontology#agent\": {\n" +
" \"@id\": \"_:node1frhft7hex63\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#role\": {\n" +
" \"@id\": \"http://data.deichman.no/role#author\"\n" +
" }\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex65\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Person\",\n" +
" \"http://data.deichman.no/ontology#bibsysId\": \"90148055\",\n" +
" \"http://data.deichman.no/ontology#birthYear\": \"1899\",\n" +
" \"http://data.deichman.no/ontology#catalogueName\": \"White, Elwyn Brooks\",\n" +
" \"http://data.deichman.no/ontology#deathYear\": \"1985\",\n" +
" \"http://data.deichman.no/ontology#name\": \"Elwyn Brooks White\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex66\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#WorkRelation\",\n" +
" \"http://data.deichman.no/ontology#hasRelationType\": {\n" +
" \"@id\": \"http://data.deichman.no/relationType#relatedWork\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#work\": {\n" +
" \"@id\": \"_:node1frhft7hex67\"\n" +
" }\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex67\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Work\",\n" +
" \"http://data.deichman.no/ontology#contributor\": {\n" +
" \"@id\": \"_:node1frhft7hex69\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#mainTitle\": \"Stuart M\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex68\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Person\",\n" +
" \"http://data.deichman.no/ontology#bibsysId\": \"90148055\",\n" +
" \"http://data.deichman.no/ontology#birthYear\": \"1899\",\n" +
" \"http://data.deichman.no/ontology#catalogueName\": \"White, Elwyn Brooks\",\n" +
" \"http://data.deichman.no/ontology#deathYear\": \"1985\",\n" +
" \"http://data.deichman.no/ontology#name\": \"Elwyn Brooks White\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex69\",\n" +
" \"@type\": [\n" +
" \"http://data.deichman.no/ontology#MainEntry\",\n" +
" \"http://data.deichman.no/ontology#Contribution\"\n" +
" ],\n" +
" \"http://data.deichman.no/ontology#agent\": {\n" +
" \"@id\": \"_:node1frhft7hex68\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#role\": {\n" +
" \"@id\": \"http://data.deichman.no/role#author\"\n" +
" }\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex7\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Contribution\",\n" +
" \"http://data.deichman.no/ontology#agent\": {\n" +
" \"@id\": \"_:node1frhft7hex6\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#role\": {\n" +
" \"@id\": \"http://data.deichman.no/role#director\"\n" +
" }\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex70\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Publication\",\n" +
" \"http://data.deichman.no/ontology#contributor\": {\n" +
" \"@id\": \"_:node1frhft7hex76\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#duration\": {\n" +
" \"@type\": \"http://data.deichman.no/ontology#Duration\",\n" +
" \"@value\": \"07:09:00\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#hasExtent\": \"1 lydfil\",\n" +
" \"http://data.deichman.no/ontology#hasIdentifierInPrimaryCataloguingSource\": \"0647598\",\n" +
" \"http://data.deichman.no/ontology#isbn\": \"9788202743352\",\n" +
" \"http://data.deichman.no/ontology#language\": {\n" +
" \"@id\": \"http://lexvo.org/id/iso639-3/nob\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#publicationOf\": {\n" +
" \"@id\": \"_:node1frhft7hex71\"\n" +
" }\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex71\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Work\",\n" +
" \"http://data.deichman.no/ontology#contributor\": {\n" +
" \"@id\": \"_:node1frhft7hex73\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#subject\": {\n" +
" \"@id\": \"_:node1frhft7hex74\"\n" +
" }\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex72\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Person\",\n" +
" \"http://data.deichman.no/ontology#catalogueName\": \"Hansson, Knut M.\",\n" +
" \"http://data.deichman.no/ontology#name\": \"Knut M. Hansson\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex73\",\n" +
" \"@type\": [\n" +
" \"http://data.deichman.no/ontology#MainEntry\",\n" +
" \"http://data.deichman.no/ontology#Contribution\"\n" +
" ],\n" +
" \"http://data.deichman.no/ontology#agent\": {\n" +
" \"@id\": \"_:node1frhft7hex72\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#role\": {\n" +
" \"@id\": \"http://data.deichman.no/role#author\"\n" +
" }\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex74\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Person\",\n" +
" \"http://data.deichman.no/ontology#catalogueName\": \"Hansson, Knut M.\",\n" +
" \"http://data.deichman.no/ontology#name\": \"Knut M. Hansson\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex75\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Person\",\n" +
" \"http://data.deichman.no/ontology#catalogueName\": \"Fougner, Bjørn\",\n" +
" \"http://data.deichman.no/ontology#name\": \"Bjørn Fougner\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex76\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Contribution\",\n" +
" \"http://data.deichman.no/ontology#agent\": {\n" +
" \"@id\": \"_:node1frhft7hex75\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#role\": {\n" +
" \"@id\": \"http://data.deichman.no/role#reader\"\n" +
" }\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex77\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Publication\",\n" +
" \"http://data.deichman.no/ontology#contributor\": [\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex82\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex84\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex86\"\n" +
" }\n" +
" ],\n" +
" \"http://data.deichman.no/ontology#hasIdentifierInPrimaryCataloguingSource\": \"0004502\",\n" +
" \"http://data.deichman.no/ontology#hasPlaceOfPublication\": {\n" +
" \"@id\": \"_:node1frhft7hex80\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#illustrativeMatter\": {\n" +
" \"@id\": \"http://data.deichman.no/illustrativeMatter#illustrert\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#isbn\": \"8200226980\",\n" +
" \"http://data.deichman.no/ontology#language\": {\n" +
" \"@id\": \"http://lexvo.org/id/iso639-3/eng\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#mainTitle\": \"Young people at risk\",\n" +
" \"http://data.deichman.no/ontology#numberOfPages\": \"243\",\n" +
" \"http://data.deichman.no/ontology#publicationOf\": {\n" +
" \"@id\": \"_:node1frhft7hex78\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#publicationYear\": \"1995\",\n" +
" \"http://data.deichman.no/ontology#publishedBy\": \"Universitetsforl.\",\n" +
" \"http://data.deichman.no/ontology#subtitle\": \"fighting AIDS in Northern Tanzania\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex78\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Work\",\n" +
" \"http://data.deichman.no/ontology#fictionNonfiction\": {\n" +
" \"@id\": \"http://data.deichman.no/fictionNonfiction#nonfiction\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#hasClassification\": {\n" +
" \"@id\": \"_:node1frhft7hex79\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#hasSummary\": \"Knut-Inge Klepp, Paul M. Biswalo and Aud Talle. Scandinavian University Press, 1995. 243 s. ISBN 82-00-22698-0 Blant de afrikanske land er det Tanzania som har rapportert flest tilfeller av AIDS til WHO. Siden 1989 har det tanzaniansk-norske AIDS-prosjektet kartlagt HIV-og AIDS-epidemien i nord-Tanzania og funnet kulturelle, sosiologiske og psykologiske faktorer som påvirker epedemiens utvikling, samt utviklet og evaluert forebyggende planer. Denne boka fokuserer på unge mennesker, siden disse er særlig utsatt for smitterisiko. Den har en multi- faglig tilnærming til løsing av problemene. Den vil være nyttig for alle somdriver med AIDS-forskning, behandling og U-hjelpsarbeid generelt.\",\n" +
" \"http://data.deichman.no/ontology#mainTitle\": \"Young people at risk\",\n" +
" \"http://data.deichman.no/ontology#subtitle\": \"fighting AIDS in Northern Tanzania\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex79\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#ClassificationEntry\",\n" +
" \"http://data.deichman.no/ontology#hasClassificationNumber\": \"362.196979\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex8\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Publication\",\n" +
" \"http://data.deichman.no/ontology#contributor\": {\n" +
" \"@id\": \"_:node1frhft7hex19\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#hasIdentifierInPrimaryCataloguingSource\": \"0260428\",\n" +
" \"http://data.deichman.no/ontology#hasPlaceOfPublication\": {\n" +
" \"@id\": \"_:node1frhft7hex13\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#isbn\": \"9788202325145\",\n" +
" \"http://data.deichman.no/ontology#language\": {\n" +
" \"@id\": \"http://lexvo.org/id/iso639-3/nob\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#mainTitle\": \"Sommer\",\n" +
" \"http://data.deichman.no/ontology#numberOfPages\": \"271\",\n" +
" \"http://data.deichman.no/ontology#publicationOf\": {\n" +
" \"@id\": \"_:node1frhft7hex9\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#publicationYear\": \"2010\",\n" +
" \"http://data.deichman.no/ontology#publishedBy\": \"Cappelen Damm\",\n" +
" \"http://data.deichman.no/ontology#subtitle\": \"scener fra et provinsielt liv\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex80\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Place\",\n" +
" \"http://data.deichman.no/ontology#prefLabel\": \"Oslo\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex81\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Person\",\n" +
" \"http://data.deichman.no/ontology#bibsysId\": \"90810034\",\n" +
" \"http://data.deichman.no/ontology#catalogueName\": \"Biswalo, Paul M.\",\n" +
" \"http://data.deichman.no/ontology#name\": \"Paul M. Biswalo\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex82\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Contribution\",\n" +
" \"http://data.deichman.no/ontology#agent\": {\n" +
" \"@id\": \"_:node1frhft7hex81\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#role\": {\n" +
" \"@id\": \"http://data.deichman.no/role#editor\"\n" +
" }\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex83\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Person\",\n" +
" \"http://data.deichman.no/ontology#bibsysId\": \"90553981\",\n" +
" \"http://data.deichman.no/ontology#birthYear\": \"1955\",\n" +
" \"http://data.deichman.no/ontology#catalogueName\": \"Klepp, Knut-Inge\",\n" +
" \"http://data.deichman.no/ontology#name\": \"Knut-Inge Klepp\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex84\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Contribution\",\n" +
" \"http://data.deichman.no/ontology#agent\": {\n" +
" \"@id\": \"_:node1frhft7hex83\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#role\": {\n" +
" \"@id\": \"http://data.deichman.no/role#editor\"\n" +
" }\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex85\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Person\",\n" +
" \"http://data.deichman.no/ontology#bibsysId\": \"90188074\",\n" +
" \"http://data.deichman.no/ontology#birthYear\": \"1944\",\n" +
" \"http://data.deichman.no/ontology#catalogueName\": \"Talle, Aud\",\n" +
" \"http://data.deichman.no/ontology#deathYear\": \"2011\",\n" +
" \"http://data.deichman.no/ontology#name\": \"Aud Talle\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex86\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Contribution\",\n" +
" \"http://data.deichman.no/ontology#agent\": {\n" +
" \"@id\": \"_:node1frhft7hex85\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#role\": {\n" +
" \"@id\": \"http://data.deichman.no/role#editor\"\n" +
" }\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex87\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Publication\",\n" +
" \"http://data.deichman.no/ontology#hasIdentifierInPrimaryCataloguingSource\": \"0613083\",\n" +
" \"http://data.deichman.no/ontology#language\": {\n" +
" \"@id\": \"http://lexvo.org/id/iso639-3/eng\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#publicationOf\": {\n" +
" \"@id\": \"_:node1frhft7hex88\"\n" +
" }\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex88\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Work\",\n" +
" \"http://data.deichman.no/ontology#audience\": {\n" +
" \"@id\": \"http://data.deichman.no/audience#juvenile\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#biography\": {\n" +
" \"@id\": \"http://data.deichman.no/biography#autobiography\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#contributor\": {\n" +
" \"@id\": \"_:node1frhft7hex90\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#fictionNonfiction\": {\n" +
" \"@id\": \"http://data.deichman.no/fictionNonfiction#nonfiction\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#genre\": [\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex95\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex96\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex97\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex98\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex99\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex100\"\n" +
" }\n" +
" ],\n" +
" \"http://data.deichman.no/ontology#hasSummary\": \"I en serie personlige fortellinger utforsker journalist og LGBTQ-aktivist George M. Johnsons den utfordrende oppveksten sin som både svart og skeiv. Han minnes den gangen han som femåring fikk tennene slått ut av mobbere, det kjærlige forholdet til bestemoren og den første seksuelle opplevelsen sin. Det er fortellinger om både triumfer og nederlag, og boken tar opp temaer som kjønnsidentitet, vennskap, familie, strukturell marginalisering, samtykke og Black joy. Johnson reflekterer også rundt samfunnets snevre og skadelige oppfatning av hva som definerer maskulinitet. Boken utkom for første gang i 2020. Omtalen er utarbeidet av BS.\",\n" +
" \"http://data.deichman.no/ontology#subject\": [\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex91\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex92\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex93\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex94\"\n" +
" }\n" +
" ]\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex89\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Person\",\n" +
" \"http://data.deichman.no/ontology#bibsysId\": \"1615360582051\",\n" +
" \"http://data.deichman.no/ontology#birthYear\": \"1985\",\n" +
" \"http://data.deichman.no/ontology#catalogueName\": \"Johnson, George M.\",\n" +
" \"http://data.deichman.no/ontology#name\": \"George M. Johnson\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex9\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Work\",\n" +
" \"http://data.deichman.no/ontology#biography\": {\n" +
" \"@id\": \"http://data.deichman.no/biography#biographicalContent\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#contributor\": {\n" +
" \"@id\": \"_:node1frhft7hex12\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#fictionNonfiction\": {\n" +
" \"@id\": \"http://data.deichman.no/fictionNonfiction#fiction\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#genre\": [\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex16\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex17\"\n" +
" }\n" +
" ],\n" +
" \"http://data.deichman.no/ontology#hasClassification\": {\n" +
" \"@id\": \"_:node1frhft7hex10\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#hasSummary\": \"Sommer er J. M Coetzees oppfølger til bøkene \\\"Barndom\\\" (2002) og \\\"Ungdom\\\" (2003). Biografen tar et oppgjør med denne store mannlige narsissisten, ved å intervjue flere kvinner som har stått ham nær. J.M. Coetzee er født i Sør-Afrika i 1940 og har de seneste årene undervist i litteratur ved universitetet i Cape Town. Han er nå bosatt i Australia. En rekke av hans romaner er utgitt på norsk. Han har vunnet flere høythengende priser, blant annet to ganger Booker-prisen og i 2003 Nobelprisen i litteratur.\",\n" +
" \"http://data.deichman.no/ontology#isRelatedTo\": [\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex21\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex26\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex30\"\n" +
" }\n" +
" ],\n" +
" \"http://data.deichman.no/ontology#language\": {\n" +
" \"@id\": \"http://lexvo.org/id/iso639-3/eng\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#mainTitle\": \"Summertime\",\n" +
" \"http://data.deichman.no/ontology#subject\": [\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex14\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex15\"\n" +
" }\n" +
" ]\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex90\",\n" +
" \"@type\": [\n" +
" \"http://data.deichman.no/ontology#MainEntry\",\n" +
" \"http://data.deichman.no/ontology#Contribution\"\n" +
" ],\n" +
" \"http://data.deichman.no/ontology#agent\": {\n" +
" \"@id\": \"_:node1frhft7hex89\"\n" +
" },\n" +
" \"http://data.deichman.no/ontology#role\": {\n" +
" \"@id\": \"http://data.deichman.no/role#author\"\n" +
" }\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex91\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Person\",\n" +
" \"http://data.deichman.no/ontology#bibsysId\": \"1615360582051\",\n" +
" \"http://data.deichman.no/ontology#birthYear\": \"1985\",\n" +
" \"http://data.deichman.no/ontology#catalogueName\": \"Johnson, George M.\",\n" +
" \"http://data.deichman.no/ontology#name\": \"George M. Johnson\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex92\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Subject\",\n" +
" \"http://data.deichman.no/ontology#prefLabel\": \"Svarte homofile menn\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex93\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Subject\",\n" +
" \"http://data.deichman.no/ontology#prefLabel\": \"USA\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex94\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Subject\",\n" +
" \"http://data.deichman.no/ontology#prefLabel\": \"LHBT-identitet\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex95\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Genre\",\n" +
" \"http://data.deichman.no/ontology#prefLabel\": \"Selvbiografier\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex96\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Genre\",\n" +
" \"http://data.deichman.no/ontology#prefLabel\": \"Sjølvbiografiar\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex97\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Genre\",\n" +
" \"http://data.deichman.no/ontology#prefLabel\": \"Oppvekst\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex98\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Genre\",\n" +
" \"http://data.deichman.no/ontology#prefLabel\": \"Oppvekst\"\n" +
" },\n" +
" {\n" +
" \"@id\": \"_:node1frhft7hex99\",\n" +
" \"@type\": \"http://data.deichman.no/ontology#Genre\",\n" +
" \"http://data.deichman.no/ontology#prefLabel\": \"Essay\"\n" +
" }\n" +
" ]\n" +
"}";
boolean isomorphic;
do {
Model model1 = Rio.parse(new StringReader(json1), RDFFormat.JSONLD);
Model model2 = Rio.parse(new StringReader(json1), RDFFormat.JSONLD);
isomorphic = Models.isomorphic(model1, model2);
System.out.println(isomorphic);
}while (isomorphic);
}
I've managed to reproduce the same problem using an N-Triples conversion of the original JSON-LD data - so it looks as if this is not a parsing issue, or at least not a parsing issue specific to the JSON-LD format.
Also determined that using the deprecated Models.legacyIsormorphic
algorithm does not have this problem. So that points to an issue with the new algorithm implementation. It would be really useful if we could reduce this to a minimal example.
Thanks for the soon reply and sorry for my late one. I'll check the fix, and hopefully can skip Jena for isomorphic check in our tests :)
Current Behavior
The JSON-LD representations in the Steps To Reproduce section contain 2 isomorphic models. However,
Models.isIsomorfic
returns false.Expected Behavior
Models.isomorphic
should return true.Steps To Reproduce
Embed and run the following code snippet:
Version
3.7.4
Are you interested in contributing a solution yourself?
No
Anything else?
No response