Skip to content

Commit

Permalink
chore: bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
subotic committed May 29, 2019
1 parent 3fc148c commit 49bc9d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion 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
Expand Down Expand Up @@ -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="""
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -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',
Expand Down

0 comments on commit 49bc9d8

Please sign in to comment.