FI-WARE Catalogue REST API



Similar documents
SmartSantander Open Data access using FI-WARE G.E. [ORION]

Andrés An open platform for the IoT in Chile Congreso TIC 2015

Propiedades del esquema del Documento XML de envío:

Visión general de la integración con asanetwork

LEARNING MASTERS. Explore the Northeast

DIPLOMADO EN BASE DE DATOS

Schema XML_PGE.xsd. element GrupoInformes. attribute XML_PGE.xsd unqualified qualified

elearning platform Support to FIdevelopers

Usabilidad y Accesibilidad en la Web. Yannick Warnier Dokeos Latinoamérica

UNIVERSIDAD FRANCISCO DE PAULA SANTANDER DOMINIOS DE COLISION, SEGMENTACION Y VLAN. Academia Local. Ing. José Martín Calixto Cely

< IMPACT > START ACCELERATE IMPACT

HPN Product Tools. Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

New words to remember

LINIO COLOMBIA. Starting-Up & Leading E-Commerce. Luca Ranaldi, CEO. Pedro Freire, VP Marketing and Business Development

INTELIGENCIA DE NEGOCIO CON SQL SERVER

Sales Management Main Features

Ranking de Universidades de Grupo of Eight (Go8)

DIPLOMADO DE JAVA - OCA

FI-PPP / FI-WARE Open Calls. Pascal Bisson (Thales), Henk Heijnen (Technicolor)

FIWARE Lab Solution for Managing Resources & Services in a Cloud Federation

When to select APA and other Transfer Pricing options. Challenges and Opportunities for the Maquila Industry Galaz, Yamazaki, Ruiz Urquiza, S.C.

Sixth & Eighth Grade Scholarship Letter Deadline April 15, 2013

Curso SQL Server 2008 for Developers

Verbos modales. In this class we look at modal verbs, which can be a tricky feature of English grammar.

Ask your child what he or she is learning to say in Spanish at school. Encourage your child to act as if he or she is your teacher.

FI-WARE Based Application Development

ENVIRONMENT: Collaborative Learning Environment

Exemplar for Internal Achievement Standard. Spanish Level 1

Spanish 8695/S Paper 3 Speaking Test Teacher s Booklet Time allowed Instructions one not not Information exactly as they are printed not 8695/S

Enter Here ->> Superar la depresionantidepresivos

Ejercicios propuestos C. Alexander IV.2 Parametric VaR

AV-002: Professional Web Component Development with Java

FWG Management System Manual

Manejo Basico del Servidor de Aplicaciones WebSphere Application Server 6.0

Removing Language Barriers: Reaching Your Spanish Speaking Audience

STAFF REPORT. MEETING DATE: January 16, 2014 AGENDA ITEM: 8

SUBCHAPTER A. AUTOMOBILE INSURANCE DIVISION 3. MISCELLANEOUS INTERPRETATIONS 28 TAC 5.204

ICT education and motivating elderly people

The FI-PPP Value Added Future Internet Public-Private Partnership (FI-PPP) And Startup Europe

Memorial Health Care System Catholic Health Initiatives Financial Assistance Application Form

SUBCHAPTER A. AUTOMOBILE INSURANCE DIVISION 3. MISCELLANEOUS INTERPRETATIONS 28 TAC 5.204

FIWARE Based Application Development

Please note that the print size cannot be smaller than the text in the document.

N A T I O N A L M I S S I N G P E R S O N S P R O G R A M DNA

Chapter 10 Physical Development from One to Three

Motion Sensor Driven Gestrure Recognition for Future Internet Application Development

Sentence Match Quiz for Category: preterite_vs_imperfect_1 Mark the sentence that matches each item below.

Tema 7 GOING TO. Subject+ to be + ( going to ) + (verb) + (object )+ ( place ) + ( time ) Pronoun

APS ELEMENTARY SCHOOL PLANNING SURVEY

Práctica 1: PL 1a: Entorno de programación MathWorks: Simulink

LA HOMOLOGACIÓN DE ESTUDIOS EN LA COMUNIDAD EUROPEA: PERSPECTIVAS DESDE EL PUNTO DE VISTA DEL TRABAJO SOCIAL

ATTORNEY GENERAL LAW ENFORCEMENT DIRECTIVE NO APPENDIX A

Bucle for_in. Sintaxis: Bucles for_in con listas. def assessment(grade_list): """ Computes the average of a list of grades

WebCenter Release notes

libro touchstone 2 workbook resuelto

Articles. Articles. Introduction. Introduction. Information on e-file. Information on Free File. Media Tools

Benedictine College Financial Aid

Summary. Basic comparator operation. (Equality) 2009 Pearson Education, Upper Saddle River, NJ All Rights Reserved

Subject Tool Remarks What is JQuery. Slide Javascript Library

VaughanTown. Newsletter 5:...Last Words. Last Words and Recommendations Last Reminder Meeting point map.

manual de impresora epson tx125

Chapter 12 Intellectual Development from One One to Three to Three

Por qué ExecuTrain? Por qué ExecuTrain? Modalidad de servicio

CITY OF LAREDO Application for Certification of Compliance for Utility Connection ($ Application Fee Ordinance No.

Enrollment Forms Packet (EFP)

Taller de Emprendimiento 2 IESE Business School Version LMC

AP SPANISH LANGUAGE 2011 PRESENTATIONAL WRITING SCORING GUIDELINES

ANTILOPE Handover workshop. Franck Le Gall, Easy Global Market Constantinos Pattichis, University of Cyprus

MANUAL IMPRESORA EPSON SX130

Sympa, un gestor de listas de distribución para las universidades

Lean Experience and Operational Excelence Graña y Montero

MANUAL DE IMPRESORA EPSON TX235W

European Parliament Open Parliament. eadministration & Open Standards. Alberto Barrionuevo F.F.I.I. President. Brussels, April 17th, 2008.

Visualizing an OrientDB Graph Database with KeyLines

Prepárate. BT Computer ABCs for Women in Transition

Information and Application for Admission

ATTORNEY GENERAL LAW ENFORCEMENT DIRECTIVE NO APPENDIX A POTENTIAL LIABILITY WARNING - N.J.S.A. 39: , FORM AND GUIDELINES 1

A FIRST COURSE IN SOFTWARE ENGINEERING METHODS AND THEORY UN CURSO INICIAL SOBRE TEORÍA Y MÉTODOS DE LA INGENIERÍA DE SOFTWARE

AP SPANISH LITERATURE 2009 SCORING GUIDELINES

OFFICE OF COMMON INTEREST COMMUNITY OMBUDSMAN CIC#: DEPARTMENT OF JUSTICE

Level 2 Spanish, 2012

So#ware to Data model

OMEGA SOFT WF RISKEVAL

Pasquale Vitale Engineering Ingegneria Informatica. FIWARE LAB Cloud Portal

How To Build A Cloud Based Network System

Domina Google Con Video Marketing 2.0 -> Click Here

Using Social Networking Sites to Support Online Individual Health Behavior Change Projects

SEO for Content Management Systems. Brent D. Payne Tribune

Discover Natural Science for ESO 1 and 2

Section 1. Background

How To Write A Report On A Drug Company

Transcription:

FI-WARE Catalogue REST API Topics addressed: Catalogue, Manual, Drupal, API, REST Editor: Pedro Rodríguez Pérez e-mail: prodriguez@dit.upm.es Page 1

Changes History Release Major changes description Date Editor 0.1 First Public Version 24/03/2014 PRP 0.2 Added Environment Field 25/04/2014 PRP 0.3 Added Environment Filter 25/06/2014 PRP Page 2

Table of Contents 1 INTRODUCTION... 1 2 INFORMATION AVAILABLE... 2 3 THE API... 3 4 REFERENCES... 9 Page 3

1 Introduction The FI-WARE Catalogue provides publicly available information about the Generic Enablers, Generic Enabler Instances and Tools developed within the FI-WARE project. This document describes the API for accessing the contents of the FI-WARE Catalogue. Page 1

2 Information Available The API provided by the Catalogue allows access to the following structured information: Generic Enablers and Tools. o o o o o o General Description. Short Description Description that appears in the Enablers/Tools List. Long Description Information that appears in the GE/Tool Page. Contact Person Name of the Contact Person. Contact Details E-mail or additional contact information. Icon Link to the image describing the Enabler/tool. Rating HTML code containing the rating system. Open Specification Reference Link to the Open Specification Reference. Creating Instances Information on how to create new instances if possible. Documentation Additional documentation and information about the GEI. Downloads. Instances. Files Each of the Files added to the Downloads. Generic Enabler Instances Available instance of a Generic Enabler Implementation. Description General information about the instance. Service End-point URL URL to access the Instance when applicable. Instance Environment The environment where the instance is deployed, currently there are three options: FI-PPP Testbed FI-LAB (Open Innovation Lab) Other Environments Terms and Conditions Terms and conditions for using the Generic Enabler Implementation and/or the instances. Page 2

3 The API 3.1 Resources The API has only one resource: /enabler_list Adding the Catalogue URL: http://catalogue_url/rest_node_api/enabler_list An HTTP call to that URL dumps all the information available in the Catalogue in XML format. Additionally,.json can be added to obtain the information in JSON format: http://catalogue_url/rest_node_api/enabler_list.json From now on we will use XML examples for readability purposes but the names of the fields and the structure are the same in JSON format. The skeleton of a response is this: <result is_array="true"> <item> </item>... </result> <node_type/> <node_title/> <nid/> <Chapter/> <Body/> <Short_Description/> <Description/> <Contact_Person/> <Contact_Details/> <Icon/> <Rating/> <File/> <Open_Specification_reference/> <Service_Endpoint URL_/> </Instance_Environment> <og_node_gid/> <og_membership_node_gid/> Where: Field node_type node_title nid Description The type of content piece. The title. Unique identification number. Can also be used to access the original Page 3

Chapter Body Short_Description Description Contact_Person Contact_Details Icon Rating File Open_Specification_reference Service_Endpoint URL Instance_Environment og_node_gid og_membership_node_gid Catalogue entry with http://catalogue/node/nid The FI- WARE chapter Main content of the entry. Brief Description of the content Full description Name of the contact person for this GE Details for the contact person (email, phone, etc.) A link to the Icon image for this GE HTML code for the rating system Link to the File Link to the Open Specification Reference The Endpoint URL for a Generic Enabler Instance when applicable The environment where the Generic Enabler Instance is running Group id for the node (applies to enablers) Group id of the group that owns the node (applies to all but enablers) All content is classified by the node_type: node_type enabler Description Generic Enabler Implementations enabler_instance Generic Enabler Implementation Instances enabler_sub_page Additional contents tied to a GEI: file Creating Instances Terms and Conditions Documentation Files related to a GEI In the following table we can see what fields are relevant for each node_type, green means it is applicable to that type, with notes when needed. Red means that field does not contain information for that type. Field / node_type enabler enabler_instance enabler_sub_page file node_type node_title nid Chapter Body Short_Description Description Name of the enabler General GEI information Name of the instance Type of enabler sub- page Number of the file Description of the Instance Main Content of the sub- page File Description Page 4

Contact_Person Contact_Details Icon Rating File Open_Specification_reference Service_Endpoint URL Instance_Environment og_node_gid og_membership_node_gid The fields og_node_gid and og_membership_node_gid are not important outside of the Catalogue, they are used to tie together enablers with the enabler_sub_pages, instances and files. This relationship is explained in the figure below. Each enabler has a og_node_gid. All the content related to that GE will have the og_membership_node_gid equal to that og_node_gid. Note, the og_node_gid is not related to the nid. Page 5

3.2 Filters Filters can be used to refine the requests to the API.The syntax for using filters is: http://catalogue_url/rest_node_api/enabler_list?filter1=value1&filter2=value2 As in the example, filters can be combined to get more accurate results. There are four filters in the FI-WARE Catalogue API: Nid, Chapter, Type and Group. 3.2.1 Nid Filter The Nid filter retrieves the element of the Catalogue with a given nid field. The keyword for the filter is nid. For example, to retrieve the element with 19 as nid: http://catalogue_url/rest_node_api/enabler_list?nid=19 3.2.2 Chapter Filter The Chapter filter can be used to select a single Chapter to retrieve information of GEIs. Remember that the Chapter field is only present in GEIs. The keyword is field_api_chapter_tid and a number represents each chapter: 1: Applications 2: Cloud Hosting 3: Data/Context Mgmnt 4: Interface to Network 5: Internet of Things 6: Security 7: Tools Tools are a special Chapter here, it can be used to retrieve information about FI-WARE Tools even though those are not strictly GEIs. To get all GEIs from the security Chapter, the request would be: http://catalogue_url/rest_node_api/enabler_list?field_api_chapter_tid=6 3.2.3 Type Filter This filter selects a single type of content from the ones explained above (enabler, enabler_instance, enabler_sub_page and file). The keyword is type. For instance, to retrieve only GEIs from the Catalogue: http://catalogue_url/rest_node_api/enabler_list?type=enabler 3.2.4 Environment Filter This filter only applies to enabler_instance so, in order to be effective is has to be used with the previous filter (?type=enabler_instance) the keyword is instance_environment. Page 6

There are three possible values for the filter corresponding with the three environments available: FI-PPP Testbed FI-LAB (Open Innovation Lab) Other Environments Example: http://catalogue_url/rest_node_api/enabler_list?type=enabler_instance&instance_environm ent= FI-PPP Testbed 3.2.5 Group Filter This filter allows to retrieve all the information (enabler page, sub-pages, instances and files) from a particular GEI. The keyword is group. Here we will use the og_node_gid of a enabler to retrieve the associated pages. For instance, lets say we have previously retrieve this enabler: <item> <node_title>a Test Enabler</node_title> <nid>632</nid> <node_type>enabler</node_type> <og_node_gid>93</og_node_gid> <Chapter> <a href="/chapter/security" typeof="skos:concept" property="rdfs:label skos:preflabel" datatype="">security</a> </Chapter> <Contact_Details> <p> Ipsum ha sido el texto de relleno estándar de las industrias desde el año 1500, cuando un impresor (N. del T. persona que se dedica a la imprenta) desconocido usó una galería de textos y los mezcló de tal manera que logró hacer un libro de textos especimen. No sólo sobrevivió 500 años, sino que tambien ingresó como texto de relleno en documentos electrónicos, quedando esencialmente igual al original. Fue popularizado en los 60s con la creación de las hojas "Letraset", las cuales contenian pasajes de Lorem Ipsum, y más recientemente con</p> </Contact_Details> <Contact_Person>me</Contact_Person> <Icon> <img typeof="foaf:image" src="http://rocky.dit.upm.es:8888/sites/default/files/lg.png" width="474" height="367" alt="" /> </Icon> <Short_Description>Testing</Short_Description> <Body> <p>em Ipsum ha sido el texto de relleno estándar de las industrias desde el año 1500, cuando un impresor (N. del T. persona que se dedica a la imprenta) desconocido usó una galería de textos y los mezcló de tal manera que logró hacer un libro de textos especimen. No sólo sobrevivió 500 años, sino que tambien ingresó como texto de relleno en documentos electrónicos, quedando esencialmente igual al original. Fue popularizado en los 60s con la creación de las hojas "Letraset", las cuales contenian pasajes de Lorem Ipsum, y más recientemente con</p> </Body> <Rating> <div class="clearfix fivestar-average-stars fivestar-average-text"><div class="fivestar-static-form-item"><div class="control-group form-type-item"> <div class="controls"> <div class="fivestar-default"><div class="fivestar-widget-static fivestar-widget-static-vote fivestar-widget-static-5 clearfix"><div class="star star-1 star-odd star-first"><span class="off">0</span></div><div class="star star-2 stareven"><span class="off"></span></div><div class="star star-3 star-odd"><span class="off"></span></div><div class="star star-4 star-even"><span Page 7

class="off"></span></div><div class="star star-5 star-odd star-last"><span class="off"></span></div></div></div> <p class="help-block"><div class="fivestarsummary fivestar-summary-average-count"><span class="empty">no votes yet</span></div></p> </div></div> </div></div> </Rating> <File/> <Open_Specification_reference/> <Service_Endpoint URL_/> <Description/> </item> Notice that the og_node_gid field equals 93.In order to retrieve all the associated sub-pages, instances, etc. We will use the following request: http://catalogue_url/rest_node_api/enabler_list?group=93 Page 8

4 References [Drupal] [Ubuntu] www.drupal.org www.ubuntu.com Page 9