未知
cubicweb-accidents的Python项目详细描述
概要
----
data.gouv.fr事故立方体(http://www.data.gouv.fr/fr/dataset/base-de-donnees-accidents-corporels-de-la-circulation-sur-6-annees)
installation
----
create an instance:
create the database:
!不要启动db init!
>psql我的实例事故-f/usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql
>psql我的实例事故-f/usr/share/postgresql/9.1/contrib/postgis-1.5/space我的实例事故-f/usr/share/postgresql/9.1/contrib/postgis-1.1.1/contrib/postgis-1.5/postgis/space我的实例事故数据库
>完成数据库:
>
推送数据:
json中http://fr.dbpedia.org/sparql
上的公社和部门,使用以下请求:
prefix db owl:<;http://dbpedia.org/ontology/>;
select?维尔?密码?名字?拉特?很久了?德普?部门代码?depname在哪里{
?ville db owl:country<;http://fr.dbpedia.org/resource/france>;
?猫头鹰:插入码?代码。
?维尔:名字?姓名。
?猫头鹰:科室?深度
?儿科猫头鹰:插入码?部门代码。
?部门:姓名?部门名称。
?维尔:拉特?纬度
?维尔:长吗?长。
}
/路径/to/cubes/accidents/import_vehicles.py/path/to/vehicles.csv
实例 http db fr contrib 部门 cubicweb postgis 事故 accidents
----
data.gouv.fr事故立方体(http://www.data.gouv.fr/fr/dataset/base-de-donnees-accidents-corporels-de-la-circulation-sur-6-annees)
installation
----
create an instance:
create the database:
!不要启动db init!
>psql我的实例事故-f/usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql
>psql我的实例事故-f/usr/share/postgresql/9.1/contrib/postgis-1.5/space我的实例事故-f/usr/share/postgresql/9.1/contrib/postgis-1.1.1/contrib/postgis-1.5/postgis/space我的实例事故数据库
>完成数据库:
>
推送数据:
json中http://fr.dbpedia.org/sparql
上的公社和部门,使用以下请求:
prefix db owl:<;http://dbpedia.org/ontology/>;
select?维尔?密码?名字?拉特?很久了?德普?部门代码?depname在哪里{
?ville db owl:country<;http://fr.dbpedia.org/resource/france>;
?猫头鹰:插入码?代码。
?维尔:名字?姓名。
?猫头鹰:科室?深度
?儿科猫头鹰:插入码?部门代码。
?部门:姓名?部门名称。
?维尔:拉特?纬度
?维尔:长吗?长。
}
/路径/to/cubes/accidents/import_vehicles.py/path/to/vehicles.csv
标签: