Open Geospatial Consortium
Publication Date: 2015-11-18
Approval Date: 2015-08-27
Posted Date: 2015-07-21
Reference number of this document: OGC 15-058
Reference URL for this document: http://www.opengis.net/doc/PER/tb11-symbology-mediation
Category: Public Engineering Report
Editor(s): Stephane Fellah
OGC Testbed-11 Symbology Mediation Engineering Report
Copyright © 2015 Open Geospatial Consortium. To obtain additional rights of use, visit http://www.opengeospatial.org/legal/.
Warning
This document is not an OGC Standard. This document is an OGC Public Engineering Report created as a deliverable in an OGC Interoperability Initiative and is not an official position of the OGC membership. It is distributed for review and comment. It is subject to change without notice and may not be referred to as an OGC Standard. Further, any OGC Engineering Report should not be referenced as required or mandatory technology in procurements.
Document type: OGC® Engineering Report Document subtype: NA Document stage: Approved for public release Document language: English
OGC 15-058
License Agreement
Permission is hereby granted by the Open Geospatial Consortium, ("Licensor"), free of charge and subject to the terms set forth below, to any person obtaining a copy of this Intellectual Property and any associated documentation, to deal in the Intellectual Property without restriction (except as set forth below), including without limitation the rights to implement, use, copy, modify, merge, publish, distribute, and/or sublicense copies of the Intellectual Property, and to permit persons to whom the Intellectual Property is furnished to do so, provided that all copyright notices on the intellectual property are retained intact and that each person to whom the Intellectual Property is furnished agrees to the terms of this Agreement.
If you modify the Intellectual Property, all copies of the modified Intellectual Property must include, in addition to the above copyright notice, a notice that the Intellectual Property includes modifications that have not been approved or adopted by LICENSOR.
THIS LICENSE IS A COPYRIGHT LICENSE ONLY, AND DOES NOT CONVEY ANY RIGHTS UNDER ANY PATENTS THAT MAY BE IN FORCE ANYWHERE IN THE WORLD.
THE INTELLECTUAL PROPERTY IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE DO NOT WARRANT THAT THE FUNCTIONS CONTAINED IN THE INTELLECTUAL PROPERTY WILL MEET YOUR REQUIREMENTS OR THAT THE OPERATION OF THE INTELLECTUAL PROPERTY WILL BE UNINTERRUPTED OR ERROR FREE. ANY USE OF THE INTELLECTUAL PROPERTY SHALL BE MADE ENTIRELY AT THE USER’S OWN RISK. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR ANY CONTRIBUTOR OF INTELLECTUAL PROPERTY RIGHTS TO THE INTELLECTUAL PROPERTY BE LIABLE FOR ANY CLAIM, OR ANY DIRECT, SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM ANY ALLEGED INFRINGEMENT OR ANY LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR UNDER ANY OTHER LEGAL THEORY, ARISING OUT OF OR IN CONNECTION WITH THE IMPLEMENTATION, USE, COMMERCIALIZATION OR PERFORMANCE OF THIS INTELLECTUAL PROPERTY.
This license is effective until terminated. You may terminate it at any time by destroying the Intellectual Property together with all copies in any form. The license will also terminate if you fail to comply with any term or condition of this Agreement. Except as provided in the following sentence, no such termination of this license shall require the termination of any third party end-user sublicense to the Intellectual Property which is in force as of the date of notice of such termination. In addition, should the Intellectual Property, or the operation of the Intellectual Property, infringe, or in LICENSOR’s sole opinion be likely to infringe, any patent, copyright, trademark or other right of a third party, you agree that LICENSOR, in its sole discretion, may terminate this license without any compensation or liability to you, your licensees or any other party. You agree upon termination of any kind to destroy or cause to be destroyed the Intellectual Property together with all copies in any form, whether held by you or by any third party.
Except as contained in this notice, the name of LICENSOR or of any other holder of a copyright in all or part of the Intellectual Property shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Intellectual Property without prior written authorization of LICENSOR or such copyright holder. LICENSOR is and shall at all times be the sole entity that may authorize you or any third party to use certification marks, trademarks or other special designations to indicate compliance with any LICENSOR standards or specifications.
This Agreement is governed by the laws of the Commonwealth of Massachusetts. The application to this Agreement of the United Nations Convention on Contracts for the International Sale of Goods is hereby expressly excluded. In the event any provision of this Agreement shall be deemed unenforceable, void or invalid, such provision shall be modified so as to make it valid and enforceable, and as so modified the entire Agreement shall remain in full force and effect. No decision, action or inaction by LICENSOR shall be construed to be a waiver of any rights or remedies available to it.
None of the Intellectual Property or underlying information or technology may be downloaded or otherwise exported or reexported in violation of U.S. export laws and regulations. In addition, you are responsible for complying with any local laws in your jurisdiction which may impact your right to import, export or use the Intellectual Property, and you represent that you have complied with any regulations or registration procedures required by applicable law to make this license enforceable
ii Copyright © 2015 Open Geospatial Consortium.
OGC 15-058
Contents Page
1 Introduction ...... 1 1.1 Scope ...... 1 1.2 Document contributor contact points ...... 1 1.3 Revision history ...... Error! Bookmark not defined. 1.4 Future work ...... 1 1.5 Foreword ...... 1 2 References ...... 2 3 Terms and definitions ...... 2 4 Conventions ...... 4 4.1 Abbreviated terms ...... 4 4.2 UML notation ...... 5 5 ER Topic overview ...... 6 6 Symbology in Emergency Management ...... 8 6.1 Overview ...... 8 6.2 FGDC HSWG Emergency Management Symbology ...... 9 6.3 Canadian Emergency Management Symbology ...... 10 7 Review of existing Portrayal standards ...... 12 7.1 ISO 19117 ...... 12 7.2 SLD ...... 12 7.3 SE ...... 13 7.4 KML ...... 13 8 Incident Ontologies ...... 13 8.1 ADP LEAPS Model ...... 13 8.2 Core Incident Model ...... 14 8.3 Incident model and data for demonstration ...... 16 9 Portrayal Ontologies ...... 19 9.1 Overview ...... 19 9.2 Design Approach ...... 21 9.2.1 Minimal ontological commitment ...... 21 9.2.2 Modularization of ontologies ...... 21 9.2.3 Reusability of ontologies ...... 22 9.2.4 Understandability ...... 22 9.3 Style Ontology ...... 22 9.3.1 Style ...... 23 9.3.2 PortrayalRuleSet ...... 25 9.3.3 PortrayalRule ...... 26 9.3.4 PortrayalRuleCondition ...... 27
Copyright © 2015 Open Geospatial Consortium. iii
OGC 15-058
9.4 Symbology Ontology ...... 29 9.4.1 SymbolSet ...... 30 9.4.2 Symbol ...... 31 9.4.3 SymbolDefinition ...... 32 9.4.4 SymbolComponent ...... 33 9.5 Graphics Ontology ...... 34 9.5.1 External Graphic ...... 34 9.5.2 Font, FontFamily and Foundry ...... 35 9.6 Portrayal Catalog Ontology ...... 36 10 Portrayal Encoding ...... 37 10.1 HSWG Portrayal Encoding ...... 37 10.2 EMS Portrayal Encoding ...... 37 11 Semantic Mediation ...... 38 11.1 Introduction ...... 38 11.2 Review of existing approaches ...... 38 11.2.1 EDOAL ...... 39 11.2.2 Rule Interchange Format ...... 40 11.2.3 SPIN ...... 41 11.2.4 Topbraid SPIN Map ...... 42 11.3 Approach used for testbed ...... 43 11.4 SPARQL Extensions ontology ...... 44 11.4.1 Modeling Query in RDF ...... 44 11.4.2 Meta-modeling vocabulary ...... 45 11.4.2.1 ParamerizableType ...... 45 11.4.3 Modeling Functions ...... 46 11.4.3.1 Function ...... 47 11.4.3.2 FunctionCall ...... 48 11.4.3.3 FunctionLibrary ...... 48 11.4.4 Modeling Mappings ...... 49 11.4.4.1 MappingType ...... 49 11.4.4.2 Mapping ...... 53 11.4.5 Modeling Templates ...... 53 11.4.5.1 QueryTemplate ...... 54 11.4.5.2 AskTemplate ...... 54 11.4.5.3 ConstructTemplate ...... 54 11.4.5.4 SelectTemplate ...... 55 11.4.6 Modeling Rules ...... 55 11.4.6.1 Rule ...... 56 11.4.6.2 SPARQL Rule ...... 56 11.4.6.3 Rule Library ...... 56 11.5 Semantic Mediation Ontology ...... 57 11.5.1 Alignment ...... 57 11.6 Extensions functions to SPARQL ...... 60 11.6.1 geosparql:skosMatch ...... 61 iv Copyright © 2015 Open Geospatial Consortium.
OGC 15-058
11.6.1.1 Examples ...... 61 11.6.2 geosparql:eval ...... 64 12 Implementations ...... 64 12.1 Image Matters Semantic Mediation Service...... 64 12.1.1 Architecture ...... 65 12.1.2 REST API Overview ...... 65 12.1.3 Endpoint: /functions ...... 66 12.1.3.1 Request ...... 67 12.1.3.2 Response ...... 67 12.1.3.3 Examples ...... 67 12.1.4 Endpoint: /mappings/types ...... 72 12.1.4.1 Request ...... 72 12.1.4.2 Response ...... 73 12.1.4.3 Examples ...... 73 12.1.5 Endpoint: /alignments/model ...... 73 12.1.5.1 Request ...... 73 12.1.5.2 Response ...... 73 12.1.5.3 Example ...... 73 12.1.6 Endpoint: /alignments/sparql ...... 73 12.1.6.1 Request ...... 73 12.1.6.2 Response ...... 74 12.1.6.3 Example ...... 74 12.1.7 Endpoint: /alignments/instances ...... 74 12.1.7.1 Request ...... 74 12.1.7.2 Response ...... 74 12.1.7.3 Examples ...... 74 12.1.8 Endpoint: /alignments/instances/{id} ...... 76 12.1.8.1 Request ...... 76 12.1.8.2 Response ...... 77 12.1.8.3 Example ...... 77 12.1.9 Endpoint: /alignments/instances/{id}/mediator ...... 78 12.1.9.1 HTTP Get Request ...... 79 12.1.9.2 Response ...... 79 12.1.9.3 Example ...... 79 12.1.9.4 HTTP Post Request ...... 82 12.2 Image Matters Semantic Portrayal Service ...... 82 12.2.1 Architecture overview ...... 82 12.2.2 REST API Overview ...... 82 12.2.3 Endpoint: /symbolsets ...... 83 12.2.3.1 Request ...... 83 12.2.3.2 Response ...... 83 12.2.3.3 Example ...... 83 12.2.4 Endpoint: /symbols ...... 84 12.2.4.1 Request ...... 84 12.2.4.2 Response ...... 84
Copyright © 2015 Open Geospatial Consortium. v
OGC 15-058
12.2.4.3 Examples ...... 84 12.2.5 Endpoint: /sparql ...... 87 12.2.5.1 Request ...... 87 12.2.5.2 Response ...... 87 12.2.5.3 Examples ...... 87 12.3 Envitia Portrayal Service ...... 91 12.4 Geomatys SLD Producer WPS ...... 93 12.4.1 Use Case 1 : Envitia Server ...... 95 12.4.2 Use case 2 : ImageMatters Server ...... 101 12.5 WFS Sources ...... 102 12.6 FPS and Client ...... 102 13 Challenges encountered ...... 104 14 Recommendation for future works ...... 105 Annex A Portrayal Ontologies ...... 107 Annex B Semantic Mediation Ontologies ...... 108 Bibliography ...... 110
Figures Page
Figure 1: HSWG Emergency Symbology Samples 9 Figure 2: EMS Classification Structure 10 Figure 3: Canadian EMS Symbols and taxonomy 11 Figure 4: Core incident ontology model 15 Figure 5: Semantic layer with adapters to the core incident model and derived profiles 16 Figure 6: SFPD Incident samples from SF OpenData 17 Figure 7: Portrayal Microtheories 20 Figure 8 Style Model Overview 23 Figure 9 Symbology Model Overview 30 Figure 10: Use of SPIN Functions for Model transformations 42 Figure 11 Topbraid SPINMap UI 43 Figure 12 Semantic Mediation Service Architecture 65 Figure 13 SPARQL Client response 89 Figure 14 FCU Map Client 103 Figure 15 FCU Sequence Diagram 104
vi Copyright © 2015 Open Geospatial Consortium.
OGC 15-058
Tables Page
Table 1 Namespace mapping for Portrayal Microtheories ...... 21 Table 2: Style properties ...... 23 Table 3 PortrayalRuleSet properties ...... 25 Table 4 PortrayalRule properties ...... 26 Table 5 PortrayalRuleCondition Properties ...... 27 Table 6 SymbolSet Properties ...... 30 Table 7 Symbol Properties ...... 31 Table 8 SymbolDefinition Properties ...... 33 Table 9 SymbolComponent properties ...... 34 Table 10 ExternalGraphic properties ...... 35 Table 11 Font properties ...... 35 Table 12 FontFamily Properties ...... 36 Table 13 Namespace mapping for semantic mediation microtheories ...... 43 Table 14 Query Properties ...... 44 Table 15 Parameter properties ...... 45 Table 16 Function Properties ...... 47 Table 17 FunctionLibrary properties ...... 49 Table 18 MappingType Properties ...... 49 Table 19 Query Tempalte properties ...... 54 Table 20 AskTemplate properties ...... 54 Table 21 Construct Template properties ...... 55 Table 22 SelectTemplate properties ...... 55 Table 23 SPARQLRule Properties ...... 56 Table 24 RuleLibrary Properties ...... 56 Table 25 Semantic Mediation Service REST API Summary ...... 65 Table 26 Query Parameters for /functions endpoint ...... 67 Table 27 Query parameters for /mappings/types endpoint ...... 72 Table 28 Query parameters for /alignments/sparql endpoint ...... 73 Table 29 Query Parameters for /alignments/instances endpoint ...... 74 Table 30 Query parameters for /alignments/{id}/mediator endpoint ...... 79 Table 31 Portrayal Service REST API Summary ...... 82 Table 32 Query Parameters of the /symbols endpoint ...... 84
Copyright © 2015 Open Geospatial Consortium. vii
OGC 15-058
Table 33 Query parameters for /sparql endpoint ...... 87
viii Copyright © 2015 Open Geospatial Consortium.
OGC 15-058
Abstract
This OGC® Engineering Report (ER) summarizes the approaches, findings and the results of the Symbology Mediation sub-thread activities of the OGC Testbed-11 Cross Community Interoperability (CCI) Thread. The ER: