mirror of
https://github.com/ISEAL-Community/iseal-core.git
synced 2024-11-21 22:35:01 +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": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 118,
|
||||
"execution_count": 1,
|
||||
"id": "solid-grove",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@ -18,7 +18,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 134,
|
||||
"execution_count": 2,
|
||||
"id": "spiritual-geography",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@ -34,12 +34,12 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 135,
|
||||
"execution_count": 4,
|
||||
"id": "competitive-turkish",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"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.fillna('', inplace=True)\n",
|
||||
"\n",
|
||||
@ -78,7 +78,7 @@
|
||||
" if prop_type == 'CONTROLLED VALUE': ## object property\n",
|
||||
" g.add((elementURI, SKOS.prefLabel, Literal(element)))\n",
|
||||
" g.add((elementURI, RDF.type, OWL.ObjectProperty))\n",
|
||||
" g.add((elementURI, OWL.domain, conceptUri))\n",
|
||||
" g.add((elementURI, RDFS.domain, conceptUri))\n",
|
||||
" \n",
|
||||
" ## create controlled vocab\n",
|
||||
" cvURI = URIRef(NS+\"VOCAB_\"+element.replace(\" \", \"_\"))\n",
|
||||
@ -114,16 +114,16 @@
|
||||
" else: ## datatype properties\n",
|
||||
" g.add((elementURI, SKOS.prefLabel, Literal(element)))\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",
|
||||
" 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",
|
||||
" 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",
|
||||
" else:\n",
|
||||
" g.add((elementURI, OWL.range, XSD.string))\n",
|
||||
" g.add((elementURI, RDFS.range, XSD.string))\n",
|
||||
" range = XSD.string\n",
|
||||
" ##cardinality\n",
|
||||
" if cardinality == 'REPEAT VALUES':\n",
|
||||
@ -165,7 +165,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 136,
|
||||
"execution_count": 5,
|
||||
"id": "sudden-elite",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@ -176,7 +176,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 137,
|
||||
"execution_count": null,
|
||||
"id": "subsequent-zealand",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@ -190,7 +190,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 138,
|
||||
"execution_count": null,
|
||||
"id": "occupied-caribbean",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
|
Loading…
Reference in New Issue
Block a user