Giter Site home page Giter Site logo

icane-metadata's Introduction

ICANE Metadata Client

This library provides a client for the metadata REST web service published by the Statistics Agency of Cantabria (ICANE). The client abstracts the entities provided by the web service into Java objects for easier manipulation and integration in applications.

Building

The repository can be opened using NetBeans 7 (and up). It can also be built using ant:

ant dist

Also jar can be generated with maven

mvn package -f pom.xml

The resulting JAR will be created inside a dist directory, which will also contain a lib subdirectory with additional, required JAR libraries.

Javadoc can also be compiled by running:

ant javadoc

Usage

The jersey-core and jersey-client (version 1.17 and up, included in the repository) libraries must be present in the classpath for the client to work.

String baseUrl = "http://icane.es/metadata/api";
MetadataClient metadataClient = new MetadataClient(baseUrl);
try {
    TimeSeries timeSeries = cliente.getTimeSeries("demographic-indicators");
} catch (SeriesNotFoundException ex) {
    System.err.println("Series not found");
}

TimeSeries

TimeSeries acts as a wildcard object for any node in the dataset/folder/series tree. It will behave according to its nodeType property, which in turn has a uriTag member that can take the following values:

  • "time-series": A statistical time or cross-sectional series.
  • "folder": A folder (branch node) in the series tree.
  • "data-set": Another type of branch node which serves as an ancestor for a group of sub-folders and time series belonging to the same statistical collection.
  • "document": A static document.
  • "url": Power BI url.
  • "non-olap-native": A time series that was automatically migrated from a legacy database.
  • "theme": Another type of branch node that groups data-sets or folders.

Whenever a TimeSeries object is of type "folder", "data-set" or "theme", its children property will contain the nodes (that are also TimeSeries objects) directly hanging from that branch. Otherwise, children will be an empty collection or null.

icane-metadata's People

Contributors

avillar avatar predicador37 avatar sas9999 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  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.