LD4P / sinopia_editor

Sinopia Linked Data Editor
https://sinopia.io/
Apache License 2.0
35 stars 10 forks source link

trying to open a particular existing SInopia resource gives error #1608

Closed michelleif closed 5 years ago

michelleif commented 5 years ago

on stage, search for existing resource by its URI https://trellis.stage.sinopia.io/repository/stanford/d8452c5a-60c3-466a-903e-8c3e0aeb5497 or by word (right now the search string gefen finds only this resource)

try to open the found resource

error message: There was a problem retrieving https://trellis.stage.sinopia.io/repository/stanford/d8452c5a-60c3-466a-903e-8c3e0aeb5497: TypeError: this.state.entities.resourceTemplates[e] is undefined

@justinlittman investigated and says: there seems to be a problem with referencing a RT (sinopia:resourceTemplate:bf2:Item:Enumeration) that exists but is returning a 406.

I attempted to re-import that RT and did so successfully. Sinopia didn't prompt me about overwriting (so it seems like that RT did NOT exist?) but even after I imported it, I still get the same error above when trying to open the Resource in question.

what is going wrong?

michelleif commented 5 years ago

recheck after justinL's work on better error reporting

justinlittman commented 5 years ago

This can be reproduced by loading the following RDF:

_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583091c4ad35156f3f27910067f2bb937b6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "19496351512"@en .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583091c4ad35156f3f27910067f2bb937b6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://id.loc.gov/ontologies/bibframe/Isbn> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583019b120fa9913479dbe8bf79f7df6bfb <http://www.w3.org/2000/01/rdf-schema#label> "Mosaica Press"@en .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583019b120fa9913479dbe8bf79f7df6bfb <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://id.loc.gov/ontologies/bibframe/Agent> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583d3cdf148e6d13dca49b5372d054e829a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://id.loc.gov/ontologies/bibframe/Publication> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583d3cdf148e6d13dca49b5372d054e829a <http://id.loc.gov/ontologies/bibframe/place> "White Plains, New York" .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583d3cdf148e6d13dca49b5372d054e829a <http://id.loc.gov/ontologies/bibframe/date> "[2018]"@en .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583d3cdf148e6d13dca49b5372d054e829a <http://id.loc.gov/ontologies/bibframe/agent> _:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583019b120fa9913479dbe8bf79f7df6bfb .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583675e80c4e9ae8edb0e4bff772160bd3e <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://id.loc.gov/ontologies/bibframe/AdminMetadata> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583675e80c4e9ae8edb0e4bff772160bd3e <http://id.loc.gov/ontologies/bibframe/source> <http://id.loc.gov/vocabulary/organizations/cst> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583675e80c4e9ae8edb0e4bff772160bd3e <http://id.loc.gov/ontologies/bibframe/descriptionLanguage> <http://id.loc.gov/vocabulary/languages/eng> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583675e80c4e9ae8edb0e4bff772160bd3e <http://id.loc.gov/ontologies/bibframe/descriptionConventions> <http://id.loc.gov/vocabulary/descriptionConventions/rda> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583675e80c4e9ae8edb0e4bff772160bd3e <http://id.loc.gov/ontologies/bibframe/creationDate> "10/22/2019"@en .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583675e80c4e9ae8edb0e4bff772160bd3e <http://id.loc.gov/ontologies/bflc/encodingLevel> <http://id.loc.gov/vocabulary/menclvl/f> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583675e80c4e9ae8edb0e4bff772160bd3e <http://id.loc.gov/ontologies/bflc/catalogerId> "lerner"@en .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b9258326b3f0a6f6b452d8bfd9fe930056cf06 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://id.loc.gov/ontologies/bibframe/VariantTitle> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b9258326b3f0a6f6b452d8bfd9fe930056cf06 <http://id.loc.gov/ontologies/bibframe/mainTitle> "Pirḥe ha-gefen ʻal ht-Torah"@he .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b9258332f10703b0ae62ff4c9d50c15e393535 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#RWO> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b9258332f10703b0ae62ff4c9d50c15e393535 <http://www.loc.gov/mads/rdf/v1#TermsOfAddressNameElement> "Rabbi"@en .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583b76e47bcce081a7af88a1e7147a40447 <http://www.w3.org/2000/01/rdf-schema#label> "Hebrew"@en .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583b76e47bcce081a7af88a1e7147a40447 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://id.loc.gov/ontologies/bibframe/Script> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583d841cbd745c23be684e631eafff37949 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://id.loc.gov/ontologies/bflc/PrimaryContribution> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583d841cbd745c23be684e631eafff37949 <http://id.loc.gov/ontologies/bibframe/role> _:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b925835261bee89bf7902d633a1d1d98355653 .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b925835261bee89bf7902d633a1d1d98355653 <http://www.w3.org/2000/01/rdf-schema#label> "author"@en .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b925835261bee89bf7902d633a1d1d98355653 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://id.loc.gov/ontologies/bibframe/Role> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b925834412edc60e83f215e6caf3f46a1619e5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://id.loc.gov/ontologies/bibframe/Title> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b925834412edc60e83f215e6caf3f46a1619e5 <http://id.loc.gov/ontologies/bibframe/subtitle> "פרחי הגפן על התורה"@he .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b925834412edc60e83f215e6caf3f46a1619e5 <http://id.loc.gov/ontologies/bibframe/mainTitle> "The king's vineyard"@en .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583a75476c4400a850cdf0821cd556ea5e3 <http://www.w3.org/2000/01/rdf-schema#label> "Weingarten, Michael"@en .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583a75476c4400a850cdf0821cd556ea5e3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://id.loc.gov/ontologies/bibframe/Person> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b925836d61217db3f1672d30737c6a1622a0ae <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://id.loc.gov/ontologies/bflc/PrimaryContribution> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b925836d61217db3f1672d30737c6a1622a0ae <http://id.loc.gov/ontologies/bibframe/agent> _:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583a75476c4400a850cdf0821cd556ea5e3 .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b925830d22a6e04c573606ce1185ca7d6c76ae <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "9781946351517"@en .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b925830d22a6e04c573606ce1185ca7d6c76ae <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://id.loc.gov/ontologies/bibframe/Isbn> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583b1a87444bacaf0b71f65125920a4613d <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://id.loc.gov/ontologies/bflc/TransliteratedTitle> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583b1a87444bacaf0b71f65125920a4613d <http://id.loc.gov/ontologies/bibframe/subtitle> "pirḥe ha-gefen ʻal ha-Torah"@en .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b9258376622db48e7ad30472e09628eda641bb <http://www.w3.org/2000/01/rdf-schema#label> "xix, 313 pages"@en .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b9258376622db48e7ad30472e09628eda641bb <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://id.loc.gov/ontologies/bibframe/Extent> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b9258322f63dfe0d9a55cb63ec0bcccb0d99e7 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://id.loc.gov/ontologies/bflc/PrimaryContribution> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b9258322f63dfe0d9a55cb63ec0bcccb0d99e7 <http://id.loc.gov/ontologies/bibframe/agent> _:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b925833c5a9f2cf6989e5ad9aca8186f4766b8 .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583487d10d1ddc7b1eb5c9aefa23886aee8 <http://id.loc.gov/ontologies/bibframe/provisionActivityStatement> "[White Plains, NY) : Mosaica Press, [2018]"@en .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583487d10d1ddc7b1eb5c9aefa23886aee8 <http://id.loc.gov/ontologies/bibframe/dimensions> "24 cm"@en .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583487d10d1ddc7b1eb5c9aefa23886aee8 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://id.loc.gov/ontologies/bibframe/Instance> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583487d10d1ddc7b1eb5c9aefa23886aee8 <http://id.loc.gov/ontologies/bibframe/provisionActivity> _:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583d3cdf148e6d13dca49b5372d054e829a .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583487d10d1ddc7b1eb5c9aefa23886aee8 <http://id.loc.gov/ontologies/bibframe/carrier> <http://id.loc.gov/vocabulary/carriers/nc> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583487d10d1ddc7b1eb5c9aefa23886aee8 <http://id.loc.gov/ontologies/bibframe/adminMetadata> _:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583675e80c4e9ae8edb0e4bff772160bd3e .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583487d10d1ddc7b1eb5c9aefa23886aee8 <http://id.loc.gov/ontologies/bibframe/media> <http://id.loc.gov/vocabulary/mediaTypes/n> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583487d10d1ddc7b1eb5c9aefa23886aee8 <http://id.loc.gov/ontologies/bibframe/identifiedBy> _:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583091c4ad35156f3f27910067f2bb937b6 .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583487d10d1ddc7b1eb5c9aefa23886aee8 <http://id.loc.gov/ontologies/bibframe/title> _:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b925834412edc60e83f215e6caf3f46a1619e5 .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583487d10d1ddc7b1eb5c9aefa23886aee8 <http://id.loc.gov/ontologies/bibframe/responsibilityStatement> "Rabbi Mark Weingarten, Rabbi Michael Weingarten"@en .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583487d10d1ddc7b1eb5c9aefa23886aee8 <http://id.loc.gov/ontologies/bibframe/title> _:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b9258326b3f0a6f6b452d8bfd9fe930056cf06 .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583487d10d1ddc7b1eb5c9aefa23886aee8 <http://id.loc.gov/ontologies/bibframe/issuance> <http://id.loc.gov/vocabulary/issuance/mono> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583487d10d1ddc7b1eb5c9aefa23886aee8 <http://id.loc.gov/ontologies/bibframe/identifiedBy> _:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b925830d22a6e04c573606ce1185ca7d6c76ae .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583487d10d1ddc7b1eb5c9aefa23886aee8 <http://id.loc.gov/ontologies/bibframe/title> _:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583b1a87444bacaf0b71f65125920a4613d .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583487d10d1ddc7b1eb5c9aefa23886aee8 <http://id.loc.gov/ontologies/bibframe/title> _:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583b41d3870b294f5dc93a232b89e9f232a .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583487d10d1ddc7b1eb5c9aefa23886aee8 <http://id.loc.gov/ontologies/bibframe/copyrightDate> "2018"@en .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583487d10d1ddc7b1eb5c9aefa23886aee8 <http://id.loc.gov/ontologies/bibframe/extent> _:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b9258376622db48e7ad30472e09628eda641bb .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583b41d3870b294f5dc93a232b89e9f232a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://id.loc.gov/ontologies/bibframe/VariantTitle> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583b41d3870b294f5dc93a232b89e9f232a <http://id.loc.gov/ontologies/bibframe/mainTitle> "פרחי הגפן על התורה"@en .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b925833c5a9f2cf6989e5ad9aca8186f4766b8 <http://www.w3.org/2000/01/rdf-schema#label> "Weingarten, Michael"@en .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b925833c5a9f2cf6989e5ad9aca8186f4766b8 <http://www.w3.org/2000/01/rdf-schema#label> "Weingarten, Mark"@en .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b925833c5a9f2cf6989e5ad9aca8186f4766b8 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://id.loc.gov/ontologies/bibframe/Person> .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b925833c5a9f2cf6989e5ad9aca8186f4766b8 <http://www.loc.gov/mads/rdf/v1#isIdentifiedByAuthority> _:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b9258332f10703b0ae62ff4c9d50c15e393535 .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583ea7764b5abe99a559f6625f3470ac2c0 <http://www.w3.org/2000/01/rdf-schema#label> "Latin"@en .
_:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583ea7764b5abe99a559f6625f3470ac2c0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://id.loc.gov/ontologies/bibframe/Script> .
<> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://id.loc.gov/ontologies/bibframe/Work> .
<> <http://sinopia.io/vocabulary/hasResourceTemplate> "ld4p:RT:bf2:Monograph:Work" .
<> <http://id.loc.gov/ontologies/bibframe/notation> _:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583b76e47bcce081a7af88a1e7147a40447 .
<> <http://id.loc.gov/ontologies/bibframe/notation> _:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583ea7764b5abe99a559f6625f3470ac2c0 .
<> <http://id.loc.gov/ontologies/bibframe/hasInstance> _:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583487d10d1ddc7b1eb5c9aefa23886aee8 .
<> <http://id.loc.gov/ontologies/bibframe/contribution> _:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b92583d841cbd745c23be684e631eafff37949 .
<> <http://id.loc.gov/ontologies/bibframe/contribution> _:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b925836d61217db3f1672d30737c6a1622a0ae .
<> <http://id.loc.gov/ontologies/bibframe/contribution> _:Bc0ee0626X2D6219X2D421eX2D8b22X2D5ca836b9258322f63dfe0d9a55cb63ec0bcccb0d99e7 .
<> <http://id.loc.gov/ontologies/bibframe/content> <http://id.loc.gov/vocabulary/contentTypes/txt> .
michelleif commented 5 years ago

this is still giving an error, but with new release 1.4.1 the error is clearer, and is documented here LD4P/ld4ptemplates#20