Skip to content
Permalink
Browse files
chore: bump version
  • Loading branch information
subotic committed May 29, 2019
1 parent 3fc148c commit 49bc9d8a18a42c7e5a173eba8906aee0fc0a294c
Showing with 7 additions and 2 deletions.
  1. +6 −1 knora/knora.py
  2. +1 −1 setup.py
@@ -1,4 +1,5 @@
from typing import List, Set, Dict, Tuple, Optional
from pprint import pprint
from urllib.parse import quote_plus
from rdflib import Graph
from lxml import etree
@@ -839,14 +840,15 @@ def create_schema(self, shortcode: str, shortname: str):
"""
This method extracts the ontology from the ontology information it gets from Knora. It
gets the ontology information as n3-data using the Knora API and concerts into a convenient
python dict that can be used for further processing. It is required by the bulk import ptrocessing
python dict that can be used for further processing. It is required by the bulk import processing
routines.
:param shortcode: Shortcode of the project
:param shortname: Short name of the ontolopgy
:return: Dict with a simple description of the ontology
"""
turtle = self.get_ontology_graph(shortcode, shortname)
# print(turtle)
g = Graph()
g.parse(format='n3', data=turtle)
sparql="""
@@ -875,6 +877,9 @@ def create_schema(self, shortcode: str, shortname: str):
propcnt = 0
propindex= {} # we have to keep the order of the properties as given in the ontology....
for row in qres:

# print(row.res.toPython())

nresclass = row.res.toPython()
nresclass = nresclass[nresclass.find('#') + 1:]
if resclass != nresclass:
@@ -5,7 +5,7 @@

setuptools.setup(
name='knora',
version='0.0.5',
version='0.0.6',
description='A Python library and tools for the Knora-API',
url='https://github.com/dhlab-basel/knora-py',
author='Lukas Rosenthaler',

0 comments on commit 49bc9d8

Please sign in to comment.