<commit_before>**ServiceMap**

Copyright (C) 2015 DISIT Lab http://www.disit.org - University of Florence

**Dependencies**

- Tomcat 7+
- Mysql 5.5+
- Virtuoso 7.2

**Installation Guide**

- Install Tomcat, Mysql and Virtuoso
- In Mysql create the database ServiceMap and related tables using the bin/ServiceMap.sql
- Copy the file bin/servicemap.properties into the <user home>/servicemap/servicemap.properties (e.g. for tomcat7 /usr/share/tomcat7/servicemap/servicemap.properties)
- Edit the servicemap.properties to set at least the db connection properties (user and password), and the token of mapbox to be used for map requests.
- Build the .war or use the one provided in the bin directory
- Deploy the .war
- Open http://localhost:8080/ServiceMap
- In case of problems you can use http://localhost:8080/ServiceMap/conf.jsp (only from localhost or 192.168.0.x ip address) to see the configuration loaded
- load on Virtuoso all the ontologies present in the ontologies folder under a graph named 'http://www.disit.org/km4city/resource/Ontology'
- in Virtuoso iSQL command line execute "rdfs_rule_set ('urn:ontology', 'http://www.disit.org/km4city/resource/Ontology');"

**KM4City Ontology**
Documentation on the KM4City ontology can be found on http://www.disit.org/km4city/schema and on http://www.disit.org/km4city<commit_msg>commit<commit_after>**ServiceMap**

Copyright (C) 2015 DISIT Lab http://www.disit.org - University of Florence

**Dependencies**

- Tomcat 7+
- Mysql 5.5+
- Virtuoso 7.2

**Installation Guide**

- Install Tomcat, Mysql and Virtuoso
- In Mysql create the database ServiceMap and related tables using the bin/ServiceMap.sql
- Copy the file bin/servicemap.properties into the (user home)/servicemap/servicemap.properties (e.g. for tomcat7 /usr/share/tomcat7/servicemap/servicemap.properties)
- Edit the servicemap.properties to set at least the db connection properties (user and password), and the token of mapbox to be used for map requests.
- Build the .war or use the one provided in the bin directory
- Deploy the .war
- Open http://localhost:8080/ServiceMap
- In case of problems you can use http://localhost:8080/ServiceMap/conf.jsp (only from localhost or 192.168.0.x ip address) to see the configuration loaded
- load on Virtuoso all the ontologies present in the ontologies folder under a graph named 'http://www.disit.org/km4city/resource/Ontology'
- in Virtuoso iSQL command line execute "rdfs_rule_set ('urn:ontology', 'http://www.disit.org/km4city/resource/Ontology');"

**KM4City Ontology**

Documentation on the KM4City ontology can be found on http://www.disit.org/km4city/schema and on http://www.disit.org/km4city
{'fraction_non_alphanumeric': 0.09759759759759759, 'fraction_numerical': 0.024024024024024024, 'mean_word_length': 4.438775510204081, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 10, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2156775', 'n_tokens_mistral': 880, 'n_tokens_neox': 819, 'n_words': 299}