marcelotto / skout Goto Github PK
View Code? Open in Web Editor NEWA YAML-based tree-format for SKOS concept schemes
Home Page: https://hex.pm/packages/skout
License: MIT License
A YAML-based tree-format for SKOS concept schemes
Home Page: https://hex.pm/packages/skout
License: MIT License
Most of our vocabularies are based on local identifiers which also are used as notations. How about:
base_iri: http://example.com/
notations: true # turn local identifiers into notations
---
foo:
- =: Foo # shorthand for :prefLabel:
- bar
@prefix : <http://example.com/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
:foo
a skos:Concept ;
skos:notation "foo" ;
skos:prefLabel "Foo"@en ;
skow:narrower :bar .
:bar
a skos:Concept ;
skos:notation "bar" ;
skos:broader :foo .
When trying the given example as it is, I get the following error:
** (Protocol.UndefinedError) protocol Enumerable not implemented for nil of type Atom. This protocol is implemented for the following type(s): SPARQL.Query.Result, RDF.PrefixMap, RDF.List, RDF.Description, RDF.Dataset, RDF.Graph, HashSet, Range, Map, Function, List, Stream, Date.Range, HashDict, GenEvent.Stream, MapSet, File.Stream, IO.Stream (elixir) lib/enum.ex:1: Enumerable.impl_for!/1 (elixir) lib/enum.ex:141: Enumerable.reduce/3 (elixir) lib/enum.ex:1998: Enum.reduce_while/3 (skout) lib/skout/yaml/decoder.ex:118: anonymous fn/3 in Skout.YAML.Decoder.build_skos/3 (elixir) lib/enum.ex:3358: Enumerable.Map.reduce_list/3 (elixir) lib/enum.ex:1998: Enum.reduce_while/3 (skout) lib/skout/yaml/decoder.ex:139: anonymous fn/3 in Skout.YAML.Decoder.build_skos/3 (elixir) lib/enum.ex:3325: Enumerable.List.reduce/3
Removing colons for concepts without narrower definitions solves the problem.
base: http://transport.data.gov.uk/def/vehicle-category/
concept_scheme:
title: Vehicle Types
creator: UK Department for Transport
isDefinedBy: <http://www.dft.gov.uk/matrix/forms/definitions.aspx>
seeAlso: <https://www.jenitennison.com/2009/11/22/creating-linked-data-part-iii-defining-concept-schemes.html>
iri_normalization: camelize
---
- Pedal cycles
- All motor vehicles:
- Two wheeled motor vehicles
- Cars and taxis
- Buses and coaches
- Light vans
- All HGV:
- Rigid HGV:
- HGVr2
- HGVr3
- HGVr4+
- Articulated HGV:
- HGVa3/4
- HGVa5
- HGVa6
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.