Skip to content

dbpedia/Cmdi-DataID-mappings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

DMDI profiles to DataID

This repository provides the necessary mappings to convert CMDI resources into DataIDs.

We use XSPARQL to convert XML to TURTLE RDF and offer possible XSPARQL queries for every profile (.xs files). The AkswXsparql project provides the XSPARQL engine used.

These are the command line calls to execute a query:

important parameters: fromSource: the path to the source xml file or directory

file: the path to the result rdf file

rdfformat: the output serialization (see here for all options)

the last entry is always the query file (.xs) without a parameter name

====================================================== Example 1: Converting a single CMDI file into a DataID

(there are no dependent files, therefor just one file to process)

java -cs="your classpath here" org.sourceforge.xsparql.Main --fromSource="/your/path/here/source.xml" --file="/path/to/result.ttl" --rdfformat="Turtle" /your/query/file.xs

====================================================== Example 2: Converting a multiple dependent CMDI file into a DataID

(there are multiple files containing the information needed for a single DataID --> put all of them into a single directory (and only those!))

java -cs="your classpath here" org.sourceforge.xsparql.Main --fromSource="/your/path/to/source/dir" --file="/path/to/result.ttl" --rdfformat="Turtle" /your/query/file.xs

About

This repository will provide the necessary mappings between Cmd profiles (CLARIN) and DataID, as well as queries (like XSPARQL) to convert them directly.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages