mirror of
https://github.com/ISEAL-Community/iseal-core.git
synced 2024-11-25 00:00:19 +01:00
fixing domain and range namespace
This commit is contained in:
parent
3e194e10c6
commit
5b622e80e6
7765
documentation.html
7765
documentation.html
File diff suppressed because it is too large
Load Diff
@ -2,7 +2,7 @@
|
|||||||
"cells": [
|
"cells": [
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 118,
|
"execution_count": 1,
|
||||||
"id": "solid-grove",
|
"id": "solid-grove",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
@ -18,7 +18,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 134,
|
"execution_count": 2,
|
||||||
"id": "spiritual-geography",
|
"id": "spiritual-geography",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
@ -34,12 +34,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 135,
|
"execution_count": 4,
|
||||||
"id": "competitive-turkish",
|
"id": "competitive-turkish",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"df = pd.read_excel('./idss_schema_fields.xlsx')\n",
|
"df = pd.read_excel('/Users/marie-angeliquelaporte/Documents/jupyter/ISEAL/idss_schema_fields.xlsx')\n",
|
||||||
"df.dropna(how='all', axis=1)\n",
|
"df.dropna(how='all', axis=1)\n",
|
||||||
"df.fillna('', inplace=True)\n",
|
"df.fillna('', inplace=True)\n",
|
||||||
"\n",
|
"\n",
|
||||||
@ -78,7 +78,7 @@
|
|||||||
" if prop_type == 'CONTROLLED VALUE': ## object property\n",
|
" if prop_type == 'CONTROLLED VALUE': ## object property\n",
|
||||||
" g.add((elementURI, SKOS.prefLabel, Literal(element)))\n",
|
" g.add((elementURI, SKOS.prefLabel, Literal(element)))\n",
|
||||||
" g.add((elementURI, RDF.type, OWL.ObjectProperty))\n",
|
" g.add((elementURI, RDF.type, OWL.ObjectProperty))\n",
|
||||||
" g.add((elementURI, OWL.domain, conceptUri))\n",
|
" g.add((elementURI, RDFS.domain, conceptUri))\n",
|
||||||
" \n",
|
" \n",
|
||||||
" ## create controlled vocab\n",
|
" ## create controlled vocab\n",
|
||||||
" cvURI = URIRef(NS+\"VOCAB_\"+element.replace(\" \", \"_\"))\n",
|
" cvURI = URIRef(NS+\"VOCAB_\"+element.replace(\" \", \"_\"))\n",
|
||||||
@ -114,16 +114,16 @@
|
|||||||
" else: ## datatype properties\n",
|
" else: ## datatype properties\n",
|
||||||
" g.add((elementURI, SKOS.prefLabel, Literal(element)))\n",
|
" g.add((elementURI, SKOS.prefLabel, Literal(element)))\n",
|
||||||
" g.add((elementURI, RDF.type, OWL.DatatypeProperty))\n",
|
" g.add((elementURI, RDF.type, OWL.DatatypeProperty))\n",
|
||||||
" g.add((elementURI, OWL.domain, conceptUri))\n",
|
" g.add((elementURI, RDFS.domain, conceptUri))\n",
|
||||||
" range = None\n",
|
" range = None\n",
|
||||||
" if prop_type == 'DATE':\n",
|
" if prop_type == 'DATE':\n",
|
||||||
" g.add((elementURI, OWL.range, XSD.date ))\n",
|
" g.add((elementURI, RDFS.range, XSD.date ))\n",
|
||||||
" range = XSD.date\n",
|
" range = XSD.date\n",
|
||||||
" elif prop_type == 'NUMERIC VALUE':\n",
|
" elif prop_type == 'NUMERIC VALUE':\n",
|
||||||
" g.add((elementURI, OWL.range, XSD.float))\n",
|
" g.add((elementURI, RDFS.range, XSD.float))\n",
|
||||||
" range = XSD.float\n",
|
" range = XSD.float\n",
|
||||||
" else:\n",
|
" else:\n",
|
||||||
" g.add((elementURI, OWL.range, XSD.string))\n",
|
" g.add((elementURI, RDFS.range, XSD.string))\n",
|
||||||
" range = XSD.string\n",
|
" range = XSD.string\n",
|
||||||
" ##cardinality\n",
|
" ##cardinality\n",
|
||||||
" if cardinality == 'REPEAT VALUES':\n",
|
" if cardinality == 'REPEAT VALUES':\n",
|
||||||
@ -165,7 +165,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 136,
|
"execution_count": 5,
|
||||||
"id": "sudden-elite",
|
"id": "sudden-elite",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
@ -176,7 +176,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 137,
|
"execution_count": null,
|
||||||
"id": "subsequent-zealand",
|
"id": "subsequent-zealand",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
@ -190,7 +190,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 138,
|
"execution_count": null,
|
||||||
"id": "occupied-caribbean",
|
"id": "occupied-caribbean",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
|
Loading…
Reference in New Issue
Block a user