Shape File Data Map to Osm Data For Routing - openstreetmap

I am Working Routing application it is Basically Working on .osm File . I have shape file file so need to be changes used QGIS Desktop Application . But I have no idea Shape file Which Attributes map to OSM data Attributes

Following Tag Used For OSM Data Routing
Way types
highways
Routing
oneway,junction,maxspeed,bridge,tunnel,surface,access
Relations
type
Directions
lanes,name,name_1,ref
Relations
type

Related

how to view map data on qgis

Need help to open this type of map data using qgis desktop:

Archimate - Application Layer - Interfaces + Database

I am quite new to the Achrimate 3.0 and I am trying to make my model in it. I put an example below. My goal is to model this stream of data where I have a Source System which is creating output files in specific format -> next Step is Pulling the data by processing component and looking for some values in connected DB -> final step is then deliver this data (pushed by processing component) to Target Systems.
Q1: What relationship is correct to Application Component and Interface? In the picture is triggering (but maybe FLOW fits better) ?
Q2: Database is joined via Access relationship ?
Q3: For my purposes it will need to hold information about DB (columns+types+notes) structure in the diagram, any tips, how to manage it in Archimate ?
Diagram Example Here:
First, it would be nice to read the specification (http://pubs.opengroup.org/architecture/archimate3-doc/chap09.html#_Toc489946063).
Are you sure that you use only application layer? If so, then the interface is not defined correctly, the interface that you specified is rather related to the technology layer.
So:
Wrong interface (IMHO). Figure 67: Application Layer Metamodel of spec show you how elements can be linked on this layer.
Database can be represent as component, not DataObject.
In my experience - no good way. Use the standard reverse engineering mechanism. Associate the resulting UML objects with the Archimate elements if you need it.

use of rdf data in ontology

My work deals with rdf data published in web or rdf data that I have already generated.
I want to combine these rdf data in my ontology work file.
Simply, I want to create an ontology file, but this ontology file may have only definitions, class definitons etc.. The class entities or instances will be populated from rdf files.
As far as i understand, we need to define each rdf resource/class/instance definitions in ontology file too. But this is a heavy double work I guess. I have already defined resources in rdf files but I want to define these data in ontology too only by using referring to rdf file content.
Is it possible ? and is there any samples for this ?
Thank you

Loading all Files in Directory / Loading Mongoose Schemas

Im trying to load my mongoose models with the minimum lines of code. So I decided to add a configuration variable
models = 'models/**/*.js';
How can I now generate a function that goes through the given directory and loads all models?

Which is the best way to work with PostGIS and OpenLayers?

I have a postgresql db table with a City table that has a geography field with the city coordinates.
I have made a php page that loops through these records, converts geo field in latit/longit and draws a marker in an OpenLayers map to the city during an ajax call.
I don't know if this is the correct way to do it: is there a way to directly bind the sql query to the map without having to loop?
Is there a more direct relation between the database and the OpenLayers maps?
I am not sure about what is the software stack that you are using, but usually, OpenLayers do not work directly with PostGIS.
A common configuration is PostGIS -> GeoServer -> OpenLayers
GeoServer will get your data from the database (or many other sources) and publish it in a valid format for openlayers like wms.
For more specific questions you can post your question in https://gis.stackexchange.com/