Thanks, Graham! Indeed, that sparontologies implementation should save a bunch
of effort -- it is for v3.3 of the datacite schema rather than the latest v4.4,
but it's a nice template.
Also, the allen501pc/XML2RDF Java implementation was usable from the command
line as advertised! I was able to
```bash
java -jar XML2RDF-0.2-jar-with-dependencies.jar -s
datacite-schema-kernel-4.4.xsd -o output.rdf
```
and then
```python
from rdflib import Graph
g = Graph()
g.parse("output.rdf")
g.serialize(...)
```
the output is...a bit messy, but it's RDF and thus programmatically accessible
to me for alteration/repair. Thank you!
Best,
Donny
On Wed, Jan 26, 2022, at 2:42 PM, Graham Higgins wrote:
> Donny wrote:
>> __
>> I want to translate https://schema.datacite.org/meta/kernel-4.4/metadata.xsd
>> to RDF (I guess using OWL or SHACL vocab ideally).
> You may be in luck, if this 2021
> <https://www.fastmail.com/mail/Inbox/goog_1345158651?u=a369402c>DataCite
> Ontology <http://www.sparontologies.net/ontologies/datacite> saves you the
> effort.
>
>> I couldn't find anything obvious in the rdflib codebase. Any suggestions?
>> Using rdflib, or really just using python? :)
> There isn't a Python implementation of XML->RDF, so there's nothing in the
> RDFLib codebase.
>
> If the sparontologies implementation isn't any use to you, I'm not sure how
> far it'll get your in your task but this Java implementation
> <https://github.com/allen501pc/XML2RDF> includes compiled jar files which
> include all the dependencies and can be run from the command line as
> described in the README <https://github.com/allen501pc/XML2RDF#2-usage>
>
> Cheers,
> Graham
>
>
>
> --
> http://github.com/RDFLib
> ---
> You received this message because you are subscribed to the Google Groups
> "rdflib-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rdflib-dev/fa386f51-ea0c-4f2c-b53b-602f14a5f6bbn%40googlegroups.com
>
> <https://groups.google.com/d/msgid/rdflib-dev/fa386f51-ea0c-4f2c-b53b-602f14a5f6bbn%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Donny Winston, PhD (he/him/his) | Polyneme LLC
https://donnywinston.com | https://polyneme.xyz
If I've emailed you, I'd love to speak with you.
Schedule a meeting (15min+): https://meet.polyneme.xyz
--
http://github.com/RDFLib
---
You received this message because you are subscribed to the Google Groups
"rdflib-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rdflib-dev/5bedac10-f600-4ed3-8458-25496cf79fea%40www.fastmail.com.