Skip to content
/ parseSKOS Public

Parse SKOS vocabluaries! Supports N3 and Turtle-format

Notifications You must be signed in to change notification settings

ggb/parseSKOS

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:

defstruct broader: [], 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 STW
ParseSKOS.ParseTurtle.get(:stw)

# parse CCS
ParseSKOS.ParseTurtle.get(:ccs)

# parse turtle-file
ParseSKOS.ParseTurtle.get(path/to/file)

# parse n3-file
ParseSKOS.ParseNTriple.get(path/to/file)

TODO

Add support for raw XML!

About

Parse SKOS vocabluaries! Supports N3 and Turtle-format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages