User Interface Elements Documentation
Total Page:16
File Type:pdf, Size:1020Kb
Project number: 288577 Project acronym: UrbanAPI Project title: Interactive Analysis, Simulation and Visualisation Tools for Urban Agile Policy Instrument: STREP Call identifier: FP7-ICT-2011-7 Activity code: ICT-2011.5.6 ICT Solutions for governance and policy modelling Start date of Project: 2011-09-01 Duration: 36 month Deliverable reference number and title (as in Annex 1): D3.3 Rule User Interface Documentation Due date of deliverable (as in Annex 1): 15 Actual submission date: see “History” Table below Revision: Organisation name of lead contractor for this deliverable: Fraunhofer IGD Project co-funded by the European Commission within the Seventh Framework Programme (2007-2013) Dissemination Level PU Public X PP Restricted to other programme participants (including the Commission Services) RE Restricted to a group specified by the consortium CO Confidential, only for members of the consortium (including the Commission Services) Rule User Interface Elements Documentation Title: Rule User User Interface Elements Documentation Author(s)/Organisation(s): Michel Krämer, Andreas Stein, Robert Gregor / Fraunhofer IGD Working Group: WP3 References: D3.5 Data integration components Short Description: This report describes the implemented user interface for rule editing. Rule-based systems are used for various purposes within the project. The report discusses existing solutions (state of the art) and how they can be adapted for the project. It also describes the motivation behind using rule-based systems. It also gives an outlook on what will be developed in the future. This is the first version of this report. It will be superseded by an improved version after the second cycle (planned for PM30). Keywords: Rule-based system, production rules, domain-specific languages, human-machine interaction History: Version Author(s) Status Comment Date 001 Michel Krämer New Created document with initial layout 2012-11-06 002 Andreas Stein rfc Added description of graphical rule 2012-11-13 editor in CityServer3D AdminTool and rule execution example 003 Michel Krämer rfc Added sections 1, 2, 3, 4, 6, 7, 8 2012-12-14 004 Robert Gregor rfc Revised section 4.1 + minor fixes 2012-12-19 005 Michel Krämer Final Revised document based on comments 2013-01-14 from internal review 006 Michel Krämer Final Revised document based on review 2013-09-08 comments: the state of the art in rule-based languages and rule editors: see sections 5.3 and 5.4 identification of the entities to be used to build the rules: see 2/47 Rule User Interface Elements Documentation ontologies in sections 8.1.3 and 8.1.4 as well as summary in section 8.4 identification of the operators to be applied to a single entity as well as between the entities: see section 8.4 examples of rules for data integration, data processing, visual preparation and policy modelling: see example DSLs in sections 8.2 and 8.3 as well as data integration example in section 6.2.1.1 Review: Version Reviewer Comment Date 004 Helmut Augustin See quality assurance form 2013-01-07 004 Wolfgang Loibl See quality assurance form 2013-01-09 006 Wolfgang Loibl, Comments in track changes 2013-24-09 Helmut Augustin 3/47 Rule User Interface Elements Documentation Table of contents Table of contents ............................................................................................................................................... 4 About this document .......................................................................................................................................... 5 1 Introduction and motivation ............................................................................................................................ 5 2 Motivation for domain-specific rule languages ............................................................................................... 9 3 Scientific problems ........................................................................................................................................ 10 4 User benefits ................................................................................................................................................. 11 5 State of the art .............................................................................................................................................. 12 5.1 Rule-based systems............................................................................................................................... 12 5.2 Domain-specific languages .................................................................................................................... 17 5.3 Rule languages ...................................................................................................................................... 19 5.3.1 Artifical intelligence .......................................................................................................................... 20 5.3.2 Rule markup languages .................................................................................................................. 21 5.3.3 Object-oriented rule languages ....................................................................................................... 22 5.4 Graphical rule editors ............................................................................................................................. 24 5.4.1 Summary ......................................................................................................................................... 28 5.5 Graphical editors in the geospatial area ................................................................................................ 28 6 The CityServer3D’s Graphical Rule Editor ................................................................................................... 30 6.1 CityServer3D – AdminTool .................................................................................................................... 30 6.2 Graphical rule editor ............................................................................................................................... 31 6.2.1 Recipes ............................................................................................................................................ 33 6.2.1.1 Example: Cologne ................................................................................................................. 34 7 Some words on granularity ........................................................................................................................... 37 8 Policy modelling rules ................................................................................................................................... 37 8.1 Ontology modelling ................................................................................................................................ 38 8.1.1 Ontology analysis for the 3D VR scenario in Vitoria-Gasteiz .......................................................... 39 8.1.2 Ontology analysis for the 3D VR scenario in Bologna .................................................................... 39 8.1.3 Ontology model for the 3D VR scenario in Vitoria-Gasteiz ............................................................. 40 8.1.4 Ontology model for the 3D VR scenario in Bologna........................................................................ 41 8.2 Sample scripts and rules for the 3D VR scenario in Vitoria-Gasteiz ..................................................... 42 8.3 Sample scripts and rules for the 3D VR scenario in Bologna ................................................................ 42 8.4 Identified entities and operations ........................................................................................................... 43 8.5 Next steps and conclusion ..................................................................................................................... 45 9 Conclusion .................................................................................................................................................... 46 10 References ................................................................................................................................................. 46 4/47 Rule User Interface Elements Documentation About this document Rule-based systems are used for various purposes within the urbanAPI project: to resolve conflicts during data integration, to prepare and edit data, to change visual attributes prior to presentation and to enforce policy rules during policy modelling processes. Domain-specific languages (DSLs) can help the user to easily declare his own rules. This document contains an overview over existing rule-based systems (state of the art) and how they can be adapted for the project. It will also describe the motivation behind using domain- specific languages for rule-based systems. Furthermore, it describes the rule editing user interface developed for the UrbanAPI project. This document finally gives an outlook on what will be developed in the future in the UrbanAPI project. The document will have two versions. A second, revised version of this document is planned for PM 30. The final version of this document will contain all user interface elements, a description of the new language IDE for textual DSLs as well as the scientific work conducted. 1 Introduction and motivation Urban planning aims to manage the territory in order to address the key political concerns