[TASK] Change URIs for persons and organizations.
This commit is contained in:
parent
e7e9ab3d23
commit
2192686872
|
@ -74,8 +74,8 @@ vcard = Namespace('http://www.w3.org/2006/vcard/ns#')
|
||||||
obo = Namespace('http://purl.obolibrary.org/obo/')
|
obo = Namespace('http://purl.obolibrary.org/obo/')
|
||||||
hsh = Namespace('http://vivo.bib.hs-hannover.de/ontology/hshOntologie#')
|
hsh = Namespace('http://vivo.bib.hs-hannover.de/ontology/hshOntologie#')
|
||||||
|
|
||||||
localPerson = Namespace('http://vivo.bib.hs-hannover.de/person')
|
localPerson = Namespace('http://vivo.bib.hs-hannover.de/individual/person')
|
||||||
localOrg = Namespace('http://vivo.bib.hs-hannover.de/org')
|
localOrg = Namespace('http://vivo.bib.hs-hannover.de/individual/org')
|
||||||
|
|
||||||
def get_graph():
|
def get_graph():
|
||||||
"""Small little helper to create graph with namespaces ;-)"""
|
"""Small little helper to create graph with namespaces ;-)"""
|
||||||
|
@ -198,7 +198,7 @@ def processPersons(session, additionalIdSeq):
|
||||||
organization_uri = URIRef("%s/%s" % (localOrg, membership.organizational_unit))
|
organization_uri = URIRef("%s/%s" % (localOrg, membership.organizational_unit))
|
||||||
rdfP = NonFacultyAcademic(personUri)
|
rdfP = NonFacultyAcademic(personUri)
|
||||||
rdfP.associatedOe = organization_uri
|
rdfP.associatedOe = organization_uri
|
||||||
|
|
||||||
#assign non-academic person type if neccessary
|
#assign non-academic person type if neccessary
|
||||||
if isNonAcademic:
|
if isNonAcademic:
|
||||||
NonAcademic(personUri)
|
NonAcademic(personUri)
|
||||||
|
|
Loading…
Reference in New Issue