@igea/oac_backend 1.0.89 → 1.0.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igea/oac_backend",
3
- "version": "1.0.89",
3
+ "version": "1.0.91",
4
4
  "description": "Backend service for the OAC project",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -39,11 +39,12 @@ module.exports = function(jwtLib){
39
39
 
40
40
  router.get('/exposed_config', (req, res) => {
41
41
  const ip = req.headers['x-forwarded-for'] || req.socket.remoteAddress;
42
- if(ip.includes("127.0.0.1"))
43
- EXPOSED.host = "127.0.0.1"
44
- else if(ip.includes("localhost"))
45
- EXPOSED.host = "localhost"
46
-
42
+ if(EXPOSED.host == "127.0.0.1" || EXPOSED.host == "localhost"){
43
+ if(ip.includes("127.0.0.1"))
44
+ EXPOSED.host = "127.0.0.1"
45
+ else if(ip.includes("localhost"))
46
+ EXPOSED.host = "localhost"
47
+ }
47
48
  res.json({
48
49
  success: true,
49
50
  data: EXPOSED
@@ -14,7 +14,7 @@
14
14
  @prefix indagine: <http://indagine/> .
15
15
 
16
16
 
17
- ex:E7ActivityShape # INDAGINE
17
+ ex:E7activity01Shape # INDAGINE
18
18
  a sh:NodeShape, rdfs:Class ;
19
19
  sh:targetClass crm:E7_Activity ;
20
20
  rdfs:label "Indagine" ;
@@ -32,7 +32,7 @@ ex:E7ActivityShape # INDAGINE
32
32
  ] ;
33
33
  sh:property [
34
34
  sh:path crm:P14_carried_out_by ;
35
- sh:node ex:E29ActorShape ;
35
+ sh:node ex:E39ActorShape ;
36
36
  sh:name "Attori coinvolti" ;
37
37
  sh:maxCount 1 ;
38
38
  ] ;
@@ -43,9 +43,9 @@ ex:E7ActivityShape # INDAGINE
43
43
  sh:maxCount 1 ;
44
44
  ] .
45
45
 
46
- ex:E29ActorShape # ATTORI
46
+ ex:E39ActorShape # ATTORI
47
47
  a sh:NodeShape, rdfs:Class ;
48
- sh:targetClass crm:E29_Actor ;
48
+ sh:targetClass crm:E39_Actor ;
49
49
  rdfs:label "Attori coinvolti" ;
50
50
  sh:property [
51
51
  sh:path crm:P2_has_type ;
@@ -104,21 +104,16 @@ ex:I12AdoptedBeliefShape # QUESITO DIAGNOSTICO
104
104
  sh:maxCount 1 ;
105
105
  ] .
106
106
 
107
- ex:E41Appellation01aShape # ENTE RICHIEDENTE
107
+ ex:E41Appellation01Shape # ENTE RICHIEDENTE
108
108
  a sh:NodeShape, rdfs:Class ;
109
109
  sh:targetClass crm:E41_Appellation ;
110
- rdfs:label "Ente richiedente" ;
110
+ rdfs:label "Ente richiedente - Schedatore" ;
111
111
  sh:property [
112
112
  sh:path indagine:ente_richiedente ;
113
113
  sh:datatype xsd:string ;
114
114
  sh:name "Ente richiedente" ;
115
115
  sh:maxCount 1 ;
116
- ] .
117
-
118
- ex:E41Appellation01bShape # SCHEDATORE
119
- a sh:NodeShape, rdfs:Class ;
120
- sh:targetClass crm:E41_Appellation ;
121
- rdfs:label "Schedatore" ;
116
+ ] ;
122
117
  sh:property [
123
118
  sh:path indagine:schedatore ;
124
119
  sh:datatype xsd:string ;