Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Fedora URIs in Fedora for linked resources #800

Closed
whikloj opened this issue Feb 13, 2018 · 10 comments
Closed

Use Fedora URIs in Fedora for linked resources #800

whikloj opened this issue Feb 13, 2018 · 10 comments
Assignees
Milestone

Comments

@whikloj
Copy link
Member

whikloj commented Feb 13, 2018

Coming off this discussion (https://groups.google.com/d/topic/islandora-dev/WqgmbkLlUUY/discussion) and some others.

This ticket is to create a service to map the Drupal URIs that are passed to Fedora back to Fedora URIs.

So currently NonRDFSource resources in Fedora will pcdm:hasFile http://localhost:8000/media/2?_format=jsonld instead of having a link to that object in Fedora.

 <http://localhost:8080/fcrepo/rest/4d/b4/f7/c3/4db4f7c3-9167-4a2d-9fd7-cf52a26c8e60>
        pcdm:hasFile           <http://localhost:8000/media/2?_format=jsonld> ;
        pcdm:hasFile           <http://localhost:8000/media/1?_format=jsonld> ;
        ...

This API-X service will take a ldp:RDFSource object and return the RDF with either

  1. New triples added to mirror the Drupal ones but with Fedora ones. ie.

    <http://localhost:8080/fcrepo/rest/4d/b4/f7/c3/4db4f7c3-9167-4a2d-9fd7-cf52a26c8e60>
       pcdm:hasFile           <http://localhost:8000/media/2?_format=jsonld> ;
       pcdm:hasFile           <http://localhost:8080/fcrepo/rest/96/ea/3c/35/96ea3c35-d08e-4812-8c9e-cd0d6d1bd839> ;
       pcdm:hasFile           <http://localhost:8000/media/1?_format=jsonld> ;
       pcdm:hasFile           <http://localhost:8080/fcrepo/rest/92/c5/ca/63/92c5ca63-0e53-4c56-a8e8-f786c75c3da5> ;
      ....
    
  2. The Drupal triples are replaced.

    <http://localhost:8080/fcrepo/rest/4d/b4/f7/c3/4db4f7c3-9167-4a2d-9fd7-cf52a26c8e60>
       pcdm:hasFile           <http://localhost:8080/fcrepo/rest/96/ea/3c/35/96ea3c35-d08e-4812-8c9e-cd0d6d1bd839> ;
       pcdm:hasFile           <http://localhost:8080/fcrepo/rest/92/c5/ca/63/92c5ca63-0e53-4c56-a8e8-f786c75c3da5> ;
      ....
    

Or maybe this could be an option passed to the service at request time.

@dannylamb
Copy link
Contributor

Third option: Replaced if the mapping exists, otherwise leave the url unchanged.

@dannylamb
Copy link
Contributor

We'll also want to consider the effects of doing something like owl:sameAs with #768, as your first option could actually be gotten for free from the triplestore if we used inferencing.

@kanasznagyzoltan
Copy link

Danny, when Could This fix be ready? Thank you!

@kanasznagyzoltan
Copy link

kanasznagyzoltan commented Mar 14, 2018

Thank you Jared, i read in the recast service task you created a service which can resolve the drupal node link into a fedora resource link.

@kanasznagyzoltan
Copy link

This could be a really really good feature of Fedora indexing. Could i ask when could this feature be the part of the Fedora indexing? Thank you for the info!

@dannylamb
Copy link
Contributor

@kanasznagyzoltan
Copy link

Danny, thank you for the info! We will try it out when it is ready :)

@kanasznagyzoltan
Copy link

Hello Danny and Jared!

When could be this feature ready for testing under the whole Islandora CLAW system?
Thank you!

Zoli.

@kanasznagyzoltan
Copy link

When could it be the part of the claw?

@dannylamb
Copy link
Contributor

@kanasznagyzoltan The recast service is included in installs and is available for you to use / evaluate. Thanks for hanging in there!

@whikloj whikloj added this to the 1.0.0 milestone May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants