Presentation is loading. Please wait.

Presentation is loading. Please wait.

X2R Spec 1. Change log DateVersionPeopleNote 2013/11/01V0.0.1Chien-Wei Yu, Anderson Ou First draft, add X2R files spec. 2013/12/16V0.0.2Anderson Ou, Doc.

Similar presentations


Presentation on theme: "X2R Spec 1. Change log DateVersionPeopleNote 2013/11/01V0.0.1Chien-Wei Yu, Anderson Ou First draft, add X2R files spec. 2013/12/16V0.0.2Anderson Ou, Doc."— Presentation transcript:

1 X2R Spec 1

2 Change log DateVersionPeopleNote 2013/11/01V0.0.1Chien-Wei Yu, Anderson Ou First draft, add X2R files spec. 2013/12/16V0.0.2Anderson Ou, Doc YangAdd X2R Development. 2014/04/10V0.0.3Anderson Ou, Doc Yang, Gentry Yao Code review 1 st time 2014/04/25V0.0.4Anderson Ou, Doc Yang, Gentry Yao Code review 2 nd time 2

3 Outline VR X2R Service Overview VR X2R Use Spec VR X2R Development Environment Coding Standard Use Scenario Input / Output of components Source Code Files Structures 3

4 Services Overview Software components: X2R – Replace the URI in the translated RDF with “live and connected” URI USS – URI search service UMS – URI management service Extractor/Mapper – Pre/post-processor for handling URI in the RDF Services: Web-based GUI (X2R, USS and UMS) Web-based API (X2R, USS, UMS and Extractor/Mapper) Operation mode Interactive mode Batch mode 4

5 Use Spec GUI on browser Recommended resolution: 1280*768 Browsers: Google Chrome (main development platform) Mozilla FireFox Internet Explorer 11 or later API Services included: X2R, USS, UMS and Extractor/Mapper Web-based API with HTTP standard methods GET and POST 5

6 Development Environment Programming Languages: Backend: PHP Frontend: JavaScript, HTML, CSS Others: JSON, XML, AJAX (jQuery AJAX) Libraries: Backend: FirePHP for debugging, cURL for HTTP operations Frontend: jQuery, jQuery UI, Twitter Bootstrap v3, Syntax highlighter, DataTables Servers: Machine: Linux (CentOS), Apache server Database: Apache MySQL, OpenLink Virtuoso 6

7 Development Environment Browser Compatibility (Ref)Ref Google Chrome (main development platform) Mozilla FireFox Internet Explorer 11 or later Suggested Screen Resolution (Ref)Ref W 1366 X H 768 We make sure webpages do not need to be scrolled horizontally in width 1366 pixel. 7

8 VR X2R Development Programming Languages: Backend: PHP Frontend: JavaScript, HTML Others: JSON, XML, AJAX Libraries: Backend: Easy RDF (http://www.easyrdf.org/support)http://www.easyrdf.org/support Frontend: jQuery, jQuery UI, Twitter Bootstrap v3 Servers: Machine: Linux (CentOS), Apache server Database: OpenLink Virtuoso, Apache MySQL 8

9 Coding Standard PHP- PHP Framework Interop Group PSR-0 Autoloading standard PSR-1 Basic coding standard PSR-2 Coding style guide JavaScript - Google JavaScript Style Guide See next pages for URL 9

10 Reference for Coding Standard PHP Framework Interop Group Front End Coding Style (Blog article)Front End Coding Style Google JavaScript Style Guide, http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml Mozilla Webdev Bootcamp 10

11 USS TranslatorUserExtractorUMSMapper Scenario: Translator first, USS/UMS next Send XML Check format Translate input, create temp URIs Ask X2R Return temp RDF Get temp RDF Send temp RDF Return File-Term mapping Extracting terms Create URI Return URI Check or create URIs Search URIs Send term to search URI Send result X2R UI Map and replaced URIs Ask do terms/URIs mapping Return RDF with replaced URI Send File-Term-URI mapping Return final RDF RDF translation Step1: Extract terms Step2: Request USS and UMS Step3: Map terms /URI

12 Input files ExtractorX2R GUIUSSMapper Output files RDF Input files Translator ExtractorX2R GUIUSSMapper Output files RDF XML, CSV, JSON File-Term mapping File-Term-URI mapping RDF RDF with replaced URI File-Term mapping RDF File-Term-URI mapping RDF with replaced URI Need translation: XML, CSV, JSONNo need translation 12 UMS Input / Output of components

13 Input and Output of Components System Input files: XML, JSON, CSV, RDF Translator: Input files: XML, CSV(tbc), JSON(tbc) Output file: RDF Extractor: Input files: RDF (original / translated RDF), XML (tbc), CSV (tbc), JSON (tbc) Output file: File-Term mapping X2R: Input files: File-Term mapping (Required. Terms only are acceptable), Original files (Optional. For carry to mapper) Output file: File-Term-URI mapping Mapper: Input files: File-Term-URI mapping and Original files Output file: Final RDF with replaced URIs 13

14 Source Code Files Structures X2R x2r.phpThe index page of x2r x2rStep1.phpStep1 is to verify / select the extracted terms x2rStep2.phpStep2 is to search / select the corresponding URI of the term x2rStep3.phpStep3 is to finalize the X2R process and download the results Database operation (Create/Read/Update/Delete) for X2R dbCrud.phpThe DB operations with API support dbCrudClass.phpThe class file of DB operation object dbCrudExample.phpThe example to demo CRUD the database USS index.htmlThe front page of USS search.phpThe main file of USS with API support sparqlTaskClass.phpThe class file of search task object 14

15 Thank you very much!! 15


Download ppt "X2R Spec 1. Change log DateVersionPeopleNote 2013/11/01V0.0.1Chien-Wei Yu, Anderson Ou First draft, add X2R files spec. 2013/12/16V0.0.2Anderson Ou, Doc."

Similar presentations


Ads by Google