"use strict";

// if local development, communicate with DEFAULT_HOSTNAME, otherwise - with web-UI host
let DEFAULT_HOSTNAME = "demo.semiot.ru";
let hostname = location.hostname !== "localhost" ? DEFAULT_HOSTNAME : location.hostname;

export default {
    COOKIE_NAME: "ru.semiot",
    URLS: {
        messageBus: "ws://" + hostname + ":8080/ws",
        tripleStore: "http://" + hostname + ":3030/ds/query",
        tsdb: "http://" + hostname + ":4242/api/query?start={0}&end={1}&m=sum:{2}{enum_value=*}"
    },
    TOPICS: {
        "device_registered": 'ru.semiot.devices.newandobserving',
        "device_turned_off": 'ru.semiot.devices.turnoff',
        "device_remove": 'ru.semiot.devices.remove'
    },
    SPARQL: {
        prefixes: {
            rdfs: '<http://www.w3.org/2000/01/rdf-schema#>',
            ssn: '<http://purl.oclc.org/NET/ssnx/ssn#>',
            rdf: '<http://www.w3.org/1999/02/22-rdf-syntax-ns#>',
            ssncom: '<http://purl.org/NET/ssnext/communication#>',
            saref: '<http://ontology.tno.nl/saref#>',
            mcht: '<http://purl.org/NET/ssnext/machinetools#>',
            om: '<http://purl.org/ifgi/om#>'
        },
        types: {
            heatSystem: "http://purl.org/NET/ssnext/heatmeters#HeatMeter",
            electricSystem: "http://purl.org/NET/ssnext/electricmeters#ElectricMeter",
            temperature: "http://purl.org/NET/ssnext/heatmeters#Temperature",
            heat: "http://purl.org/NET/ssnext/heatmeters#Heat",
            observationResult: "http://purl.org/NET/ssnext/meters/core#hasQuantityValue"
        },
        queries: {
            getAllSystems: [
                "SELECT ?label ?uri",
                "WHERE {",
                "   ?uri a ssn:System ;",
                "       a ?type .",
                "       ?uri rdfs:label ?label .",
                "   FILTER NOT EXISTS {",
                "       ?subClass rdfs:subClassOf ?type .",
                "       ?uri a ?subClass .",
                "       FILTER (?subClass != ?type)",
                "   }",
                "}"
            ].join('\n'),
            getSystemEndpoint: [
                "SELECT ?endpoint ?type {",
                "   <{0}> ssn:hasSubsystem ?subsystem .",
                "   ?subsystem ssn:observes ?type .",
                "   ?subsystem ssncom:hasCommunicationEndpoint ?endpoint .",
                // "    ?endpoint saref:hasState ?state .",
                "   ?endpoint ssncom:protocol 'WAMP' .",
                "}"
            ].join('\n'),
            getSystemName: [
                "SELECT ?label {",
                "   <{0}> rdfs:label ?label .",
                "}"
            ].join('\n'),
            getMachineToolStates: `
                SELECT ?stateURI ?stateLabel ?stateDescription
                WHERE {
                    ?stateURI rdf:type mcht:MachineToolWorkingStateValue ;
                        rdfs:label ?stateLabel ;
                        rdfs:comment ?stateDescription .
                }
            `
        }
    },
    TIMEZONE_OFFSET: 3 * 3600 * 1000
};
@@ -171,17 +171,17 @@
 ostname 
-!
+=
 == %22loca
@@ -3075,8 +3075,9 @@
  1000%0A%7D;
+%0A

Update config.js