[TASK] Disable membership begin/end date triplification due to ugly data.

This commit is contained in:
Jan Philipp Timme 2014-03-01 11:20:22 +01:00
parent 99e275f9b5
commit 6cf6aaf4da

View File

@ -262,15 +262,15 @@ def processMembership(membership, additionalIdSeq):
personUri = URIRef("%s%s" % (localPerson, membership.mPerson.id)) personUri = URIRef("%s%s" % (localPerson, membership.mPerson.id))
organizationUri = URIRef("%s%s" % (localOrg, membership.mOrg.id)) organizationUri = URIRef("%s%s" % (localOrg, membership.mOrg.id))
dtiUri = URIRef("%s%s" % (localMembership, additionalIdSeq.getNext())) #dtiUri = URIRef("%s%s" % (localMembership, additionalIdSeq.getNext()))
dtsUri = URIRef("%s%s" % (localMembership, additionalIdSeq.getNext())) #dtsUri = URIRef("%s%s" % (localMembership, additionalIdSeq.getNext()))
dteUri = URIRef("%s%s" % (localMembership, additionalIdSeq.getNext())) #dteUri = URIRef("%s%s" % (localMembership, additionalIdSeq.getNext()))
rdfM = OboMembership(membershipUri) rdfM = OboMembership(membershipUri)
rdfM = Membership(membershipUri) rdfM = Membership(membershipUri)
rdfM.relates = [personUri, organizationUri] rdfM.relates = [personUri, organizationUri]
rdfM.label = getBusinessRoleName(membership) rdfM.label = getBusinessRoleName(membership)
rdfM.dateTimeInterval = dtiUri #rdfM.dateTimeInterval = dtiUri
if membership.mBusinessRole.name == "ProfessorIn": if membership.mBusinessRole.name == "ProfessorIn":
rdfM = FacultyPosition(membershipUri) rdfM = FacultyPosition(membershipUri)
@ -279,20 +279,20 @@ def processMembership(membership, additionalIdSeq):
else: else:
rdfM = NonAcademicPosition(membershipUri) rdfM = NonAcademicPosition(membershipUri)
rdfDts = OboDateTimeValue(dtsUri) #rdfDts = OboDateTimeValue(dtsUri)
rdfDts = DateTimeValue(dtsUri) #rdfDts = DateTimeValue(dtsUri)
rdfDts.dateTime = membership.start_date #rdfDts.dateTime = membership.start_date
rdfDts.dateTimePrecision = vivo.yearPrecision #rdfDts.dateTimePrecision = vivo.yearPrecision
rdfDte = OboDateTimeValue(dteUri) #rdfDte = OboDateTimeValue(dteUri)
rdfDte = DateTimeValue(dteUri) #rdfDte = DateTimeValue(dteUri)
rdfDte.dateTime = membership.end_date #rdfDte.dateTime = membership.end_date
rdfDte.dateTimePrecision = vivo.yearPrecision #rdfDte.dateTimePrecision = vivo.yearPrecision
rdfDti = OboDateTimeInterval(dtiUri) #rdfDti = OboDateTimeInterval(dtiUri)
rdfDti = DateTimeInterval(dtiUri) #rdfDti = DateTimeInterval(dtiUri)
rdfDti.start = dtsUri #rdfDti.start = dtsUri
rdfDti.end = dteUri #rdfDti.end = dteUri
def processPersons(session, additionalIdSeq): def processPersons(session, additionalIdSeq):
"""Fetch persons, create triples for them.""" """Fetch persons, create triples for them."""