Git Product home page Git Product logo

skout's People

Contributors

marcelotto avatar marioscrock avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

aahmadai

skout's Issues

Use local names as notations instead of labels

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 .

Remove trailing colons in example

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.