Giter VIP home page Giter VIP logo

coins-2-sdk's Introduction

COINS 2 SDK

This is the official COINS 2 software development kit for Java and .NET.

###Getting started

Download the latest build, for dotNET:

(dlls needed from ikvm 7.2/bin, see list DLL dependencies)

For Java:

###Main components The SDK consists of a set of tools:

  • coins-api
  • coins-cli
  • coins-owlgenerator

And a set of generated libraries:

  • core
  • qudt

###Documentation Visit the documentation page for more information.

###Examples

JenaCoinsContainer model = new TDBCoinsContainer("http://playground.com/");

Assembly a = new Assembly(model);

Iterator<String> individuals = model.listIndividualUris(LengthUnit.classUri).iterator();
while(individuals.hasNext()) {
  System.out.println(individuals.next());

//  Result:
//  ...
//  http://qudt.org/vocab/unit#Point
//  http://qudt.org/vocab/unit#Decimeter
//  http://qudt.org/vocab/unit#Millimeter
//  http://qudt.org/vocab/unit#NauticalMile
//  http://qudt.org/vocab/unit#Centimeter
//  http://qudt.org/vocab/unit#Fathom
//  ...
}

FloatProperty property = new FloatProperty(model);
a.addHasProperties(property);

property.setSimpleProperty(11.3f);
property.setUnit(new LengthUnit(model, LengthUnit.MILLIMETER));

model.export("/tmp/container.ccr");

This results in a container.cr with in it a content.rdf file with these triples:

<http://playground.com/> <http://www.w3.org/2002/07/owl#imports> <http://www.coinsweb.nl/COINSWOA.rdf#> .
<http://playground.com/> <http://www.w3.org/2002/07/owl#imports> <http://www.coinsweb.nl/units-2.0.rdf#> .
<http://playground.com/> <http://www.w3.org/2002/07/owl#imports> <http://www.coinsweb.nl/cbim-2.0.rdf#> .
<http://playground.com/> <http://www.coinsweb.nl/cbim-2.0.rdf#containerId> "7a0a5aa4-a7bc-4f19-a69b-1b11f9da82b4"^^<http://www.w3.org/2001/XMLSchema#string> .
<http://playground.com/> <http://www.coinsweb.nl/cbim-2.0.rdf#creator> <http://sandbox.coinsweb.nl/defaultUser> .
<http://playground.com/> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Ontology>
<http://playground.com/06b9d440-a0ba-41ea-ad79-1c35dbf18f19> <http://www.coinsweb.nl/cbim-2.0.rdf#unit> <http://qudt.org/vocab/unit#Millimeter> .
<http://playground.com/06b9d440-a0ba-41ea-ad79-1c35dbf18f19> <http://www.coinsweb.nl/cbim-2.0.rdf#datatypeValue> "11.3"^^<http://www.w3.org/2001/XMLSchema#float> .
<http://playground.com/06b9d440-a0ba-41ea-ad79-1c35dbf18f19> <http://www.coinsweb.nl/cbim-2.0.rdf#creationDate> "2016-04-06T08:14:14.629Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> .
<http://playground.com/06b9d440-a0ba-41ea-ad79-1c35dbf18f19> <http://www.coinsweb.nl/cbim-2.0.rdf#creator> <http://sandbox.coinsweb.nl/defaultUser> .
<http://playground.com/06b9d440-a0ba-41ea-ad79-1c35dbf18f19> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.coinsweb.nl/cbim-2.0.rdf#FloatProperty>.
<http://playground.com/b3b46ce3-a1e0-4e23-90f3-1bbdad1c77c6> <http://www.coinsweb.nl/cbim-2.0.rdf#hasProperties> <http://playground.com/06b9d440-a0ba-41ea-ad79-1c35dbf18f19> .
<http://playground.com/b3b46ce3-a1e0-4e23-90f3-1bbdad1c77c6> <http://www.coinsweb.nl/cbim-2.0.rdf#creationDate> "2016-04-06T08:14:14.038Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> .
<http://playground.com/b3b46ce3-a1e0-4e23-90f3-1bbdad1c77c6> <http://www.coinsweb.nl/cbim-2.0.rdf#creator> <http://sandbox.coinsweb.nl/defaultUser> .
<http://playground.com/b3b46ce3-a1e0-4e23-90f3-1bbdad1c77c6> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.coinsweb.nl/cbim-2.0.rdf#Assembly> .

coins-2-sdk's People

Contributors

bastbijl avatar

Watchers

 avatar

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.