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

resource as literal or uri, when importing DC record as rdf/xml #937

Open
pvgenuchten opened this issue Sep 5, 2024 · 6 comments
Open

Comments

@pvgenuchten
Copy link
Contributor

When importing

<rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dct="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="https://doi.org/10.1002/2016WR020175">
    <dc:identifier>10.1002/eqe.3286</dc:identifier>
    <dct:references>http://doi.org/10.1002/eqe.3286</dct:references>
    <dc:type>document</dc:type>
  </rdf:Description>
</rdf:RDF>

vs

<rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dct="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="https://doi.org/10.1002/2016WR020175">
    <dc:identifier>10.1002/2016WR020175</dc:identifier>
    <dct:references rdf:resource="http://doi.org/10.1002/2016WR020175"/>
    <dc:type>document</dc:type>
  </rdf:Description>
</rdf:RDF>

the first works fine, the second returns an empty reference element, can we support both
the second may be the optimal choice considering https://www.dublincore.org/specifications/dublin-core/dcmi-terms/terms/references/

Copy link

github-actions bot commented Dec 8, 2024

This Issue has been inactive for 90 days. In order to manage maintenance burden, it will be automatically closed in 7 days.

@github-actions github-actions bot added the stale label Dec 8, 2024
@pvgenuchten
Copy link
Contributor Author

Keep open, working on it

@github-actions github-actions bot removed the stale label Dec 15, 2024
@geographika
Copy link
Contributor

@pvgenuchten - do you have a Python snippet that calls a service returning data in the second format?

@pvgenuchten
Copy link
Contributor Author

I’ll try to find some examples

@pvgenuchten
Copy link
Contributor Author

pvgenuchten commented Mar 4, 2025

I found this example at https://www.ukoln.ac.uk/metadata/resources/rdf/examples/2/

<rdf:RDF
  xmlns:rdf="http://www.w3.org/TR/WD-rdf-syntax#"
  xmlns:dc="http://purl.org/dc/elements/1.0/"
  xmlns:dcq="http://purl.org/dc/qualifiers/1.0/">
  <rdf:Description about="http://www.ariadne.ac.uk/issue13/main/">
    <dc:Title>
      What do National Libraries do in the Age of the Internet?
    </dc:Title>
    <dc:Creator>Maurice Line</dc:Creator>
    <dc:Subject>
      National Library; Internet; Library Services; British
      Library Document Supply Centre; central collection;
      distributed collection; national bibliography; future of
      national libraries; archiving; electronic publication
    </dc:Subject>
    <dc:Description>
      Discusses whether or not national libraries have a role in
      the age of the Internet, and if they will shrink or expand?
      Or if their functions will become obsolete or be taken over
      by other bodies.
    </dc:Description>
    <dc:Type>Text.Article</dc:Type>
    <dc:Format>text/html</dc:Format>
    <dc:Relation>
      <rdf:Description>
        <dcq:RelationType
	  rdf:resource="http://purl.org/dc/vocabularies/RelationTypes/v1.0/IsPartOf"/>
        <rdf:value resource="http://www.ariadne.ac.uk/"/>
      </rdf:Description>
    </dc:Relation>
  </rdf:Description>
</rdf:RDF>

@geographika
Copy link
Contributor

@pvgenuchten - do you have a Python snippet to show this issue that I can turn into a test?

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

2 participants