Uploaded image for project: 'Fedora Repository Project'
  1. Fedora Repository Project
  2. FCREPO-2791

RDF of a memento of a binary description contains incorrect describes link

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Fedora 5.0.0
    • Component/s: versioning
    • Labels:
      None

      Description

      It appears that an untranslated URI is appearing in the response: ns001:describes          <fedora:uribase/versioned_resource> ;

      Also it is not clear why the iana prefix is not used since it should be a built in prefix.

       

      To reproduce: 

      1.create a versioned resource with a memento:

       

       
      #create binary resource
      curl -i -XPOST  -H "Slug: versioned_resource" -H "Link: <http://mementoweb.org/ns#OriginalResource>; rel=\"type\"" "http://localhost:8080/rest" -H "Content-Type: text/plain" --data-binary "Test";
      #create memento:
      curl -v -X POST  "http://localhost:8080/rest/versioned_resource/fcr:versions"
      

       

       

       

      2. retrieve the description memento: 

       

      curl -X GET http://localhost:8080/rest/versioned_resource/fcr:metadata/fcr:versions/<memento>

      3. confirm two triples in the response: 

      ns001:describes          <fedora:uribase/versioned_resource> ;

      and

      ns001:describes          <http://localhost:8080/rest/versioned_resource> .

      (full response)

       

      <http://localhost:8080/rest/versioned_resource>
       rdf:type ldp:NonRDFSource ;
       rdf:type fedora:NonRdfSourceDescription ;
       rdf:type fedora:Binary ;
       rdf:type fedora:Resource ;
       ns001:describes <fedora:uribase/versioned_resource> ;
       fedora:created "2018-05-04T21:47:02.192Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
       fedora:writable true ;
       premis:hasSize "4"^^<http://www.w3.org/2001/XMLSchema#long> ;
       ebucore:hasMimeType "text/plain" ;
       fedora:lastModified "2018-05-04T21:47:02.192Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
       premis:hasMessageDigest <urn:sha1:640ab2bae07bedc4c163f679a746f7ab7fb5d1fa> ;
       ebucore:filename "" ;
       fedora:lastModifiedBy "bypassAdmin" ;
       fedora:createdBy "bypassAdmin" ;
       rdf:type ldp:NonRDFSource ;
       fedora:writable true ;
       ns001:describes <http://localhost:8080/rest/versioned_resource> .

       

       

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ben.pennell Ben Pennell
              Reporter:
              dbernstein Danny Bernstein
              Reviewer:
              Danny Bernstein
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: