From 49bc9d8a18a42c7e5a173eba8906aee0fc0a294c Mon Sep 17 00:00:00 2001 From: Ivan Subotic Date: Wed, 29 May 2019 15:34:28 +0200 Subject: [PATCH] chore: bump version --- knora/knora.py | 7 ++++++- setup.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/knora/knora.py b/knora/knora.py index 03a2b2baa..e73fca5ec 100755 --- a/knora/knora.py +++ b/knora/knora.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,7 +840,7 @@ 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 @@ -847,6 +848,7 @@ def create_schema(self, shortcode: str, shortname: str): :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: diff --git a/setup.py b/setup.py index 70e318393..04f99a461 100644 --- a/setup.py +++ b/setup.py @@ -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',