Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

8 Commits

Repository files navigation

ParseSKOS

ParseSKOS is a small Elixir module that allows to read in and parse SKOS-source files. It supports (at the moment) files in N3 and turtle-format. The parsed vocabluary is stored as dictionary (Elixir HashDict) of nodes, where the key is the unique descriptor-id of a concept in the vocabluary and the value is the following struct:

defstructbroader: [],narrower: [],related: [],seeAlso: [],value: 0.0,prefLabel: "",altLabel: [],identifier: ""

parseSKOS comes with build-in support for two well documented and curated vocabluaries: The Standard Thesaurus Wirtschaft (STW) that includes terms to describe the domain of economics and the ACM Computer Classification System which aims to describe the domain of computer science.

Examples

Use the module as follows:

# parse STWParseSKOS.ParseTurtle.get(:stw)# parse CCSParseSKOS.ParseTurtle.get(:ccs)# parse turtle-fileParseSKOS.ParseTurtle.get(path/to/file)# parse n3-fileParseSKOS.ParseNTriple.get(path/to/file)

TODO

Add support for raw XML!

About

Parse SKOS vocabluaries! Supports N3 and Turtle-format

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages