Islandora / documentation

Contains islandora's documentation and main issue queue.
MIT License
103 stars 71 forks source link

Incorrect subject when recasting Media #1115

Closed dannylamb closed 5 years ago

dannylamb commented 5 years ago

Making this issue on behalf of @rosiel and @elizoller

When recasting Media, their pcdm:fileOf relationship gets re-written with the wrong subject. Note the different chunk at the end of the returned turtle:

vagrant@claw:/var/www/html/drupal/web/modules/contrib/islandora$ curl -H"Authorization: Bearer islandora" -H"Apix-Ldp-Resource: http://localhost:8080/fcrepo/rest/ae/6d/03/42/ae6d0342-3fbf-4ee3-9866-e5dd6f38e893/fcr:metadata" http://localhost:8000/recast/@prefix fedora: <http://fedora.info/definitions/v4/repository#> .
@prefix pcdm: <http://pcdm.org/models#> .
@prefix pcdmuse: <http://pcdm.org/use#> .
@prefix ldp: <http://www.w3.org/ns/ldp#> .
@prefix schema: <http://schema.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix ns0: <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#> .
@prefix ns1: <http://www.loc.gov/premis/rdf/v1#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix dc: <http://purl.org/dc/terms/> .
@prefix ns2: <http://www.iana.org/assignments/relation/> .

<http://localhost:8080/fcrepo/rest/ae/6d/03/42/ae6d0342-3fbf-4ee3-9866-e5dd6f38e893>
  a fedora:NonRdfSourceDescription, pcdm:File, pcdmuse:ServiceFile, fedora:Binary, fedora:Resource, ldp:NonRDFSource ;
  fedora:lastModifiedBy "bypassAdmin" ;
  schema:dateModified "2019-05-03T13:41:29+00:00"^^xsd:dateTime ;
  schema:author <http://localhost:8000/user/1?_format=jsonld> ;
  schema:sameAs "http://localhost:8000/sites/default/files/2019-05/12-Service%20File.jpg" ;
  schema:dateCreated "2019-05-03T13:41:29+00:00"^^xsd:dateTime ;
  ns0:width "5400"^^xsd:int ;
  ns1:hasSize "808596"^^xsd:long ;
  ns0:hasMimeType "image/jpeg" ;
  fedora:createdBy "bypassAdmin" ;
  fedora:created "2019-05-03T13:41:29.862Z"^^xsd:dateTime ;
  fedora:lastModified "2019-05-03T13:41:31.842Z"^^xsd:dateTime ;
  ns0:height "3639"^^xsd:int ;
  rdf:label "12-Service File.jpg"@en ;
  pcdm:fileOf <http://localhost:8000/node/12?_format=jsonld> ;
  ns0:filename "" ;
  dc:title "12-Service File.jpg"@en ;
  ns2:describedby <http://localhost:8080/fcrepo/rest/ae/6d/03/42/ae6d0342-3fbf-4ee3-9866-e5dd6f38e893/fcr:metadata> ;
  fedora:hasFixityService <http://localhost:8080/fcrepo/rest/ae/6d/03/42/ae6d0342-3fbf-4ee3-9866-e5dd6f38e893/fcr:fixity> .

<http://localhost:8080/fcrepo/rest/ae/6d/03/42/ae6d0342-3fbf-4ee3-9866-e5dd6f38e893/fcr:metadata> pcdm:fileOf <http://localhost:8080/fcrepo/rest/1d/19/9d/62/1d199d62-0b54-488b-9519-5b3a4b83774e> .
whikloj commented 5 years ago

See https://github.com/Islandora-CLAW/CLAW/issues/1114#issuecomment-490544790, I'll try to handle this issue as part of #1114

dannylamb commented 5 years ago

Resolved via https://github.com/Islandora-CLAW/Crayfish/commit/500dd20a133c6bb3f3efe10d66a956d52465037e