[TASK] Disable membership begin/end date triplification due to ugly data.
This commit is contained in:
parent
99e275f9b5
commit
6cf6aaf4da
32
triplify.py
32
triplify.py
|
@ -262,15 +262,15 @@ def processMembership(membership, additionalIdSeq):
|
|||
personUri = URIRef("%s%s" % (localPerson, membership.mPerson.id))
|
||||
organizationUri = URIRef("%s%s" % (localOrg, membership.mOrg.id))
|
||||
|
||||
dtiUri = URIRef("%s%s" % (localMembership, additionalIdSeq.getNext()))
|
||||
dtsUri = URIRef("%s%s" % (localMembership, additionalIdSeq.getNext()))
|
||||
dteUri = URIRef("%s%s" % (localMembership, additionalIdSeq.getNext()))
|
||||
#dtiUri = URIRef("%s%s" % (localMembership, additionalIdSeq.getNext()))
|
||||
#dtsUri = URIRef("%s%s" % (localMembership, additionalIdSeq.getNext()))
|
||||
#dteUri = URIRef("%s%s" % (localMembership, additionalIdSeq.getNext()))
|
||||
|
||||
rdfM = OboMembership(membershipUri)
|
||||
rdfM = Membership(membershipUri)
|
||||
rdfM.relates = [personUri, organizationUri]
|
||||
rdfM.label = getBusinessRoleName(membership)
|
||||
rdfM.dateTimeInterval = dtiUri
|
||||
#rdfM.dateTimeInterval = dtiUri
|
||||
|
||||
if membership.mBusinessRole.name == "ProfessorIn":
|
||||
rdfM = FacultyPosition(membershipUri)
|
||||
|
@ -279,20 +279,20 @@ def processMembership(membership, additionalIdSeq):
|
|||
else:
|
||||
rdfM = NonAcademicPosition(membershipUri)
|
||||
|
||||
rdfDts = OboDateTimeValue(dtsUri)
|
||||
rdfDts = DateTimeValue(dtsUri)
|
||||
rdfDts.dateTime = membership.start_date
|
||||
rdfDts.dateTimePrecision = vivo.yearPrecision
|
||||
#rdfDts = OboDateTimeValue(dtsUri)
|
||||
#rdfDts = DateTimeValue(dtsUri)
|
||||
#rdfDts.dateTime = membership.start_date
|
||||
#rdfDts.dateTimePrecision = vivo.yearPrecision
|
||||
|
||||
rdfDte = OboDateTimeValue(dteUri)
|
||||
rdfDte = DateTimeValue(dteUri)
|
||||
rdfDte.dateTime = membership.end_date
|
||||
rdfDte.dateTimePrecision = vivo.yearPrecision
|
||||
#rdfDte = OboDateTimeValue(dteUri)
|
||||
#rdfDte = DateTimeValue(dteUri)
|
||||
#rdfDte.dateTime = membership.end_date
|
||||
#rdfDte.dateTimePrecision = vivo.yearPrecision
|
||||
|
||||
rdfDti = OboDateTimeInterval(dtiUri)
|
||||
rdfDti = DateTimeInterval(dtiUri)
|
||||
rdfDti.start = dtsUri
|
||||
rdfDti.end = dteUri
|
||||
#rdfDti = OboDateTimeInterval(dtiUri)
|
||||
#rdfDti = DateTimeInterval(dtiUri)
|
||||
#rdfDti.start = dtsUri
|
||||
#rdfDti.end = dteUri
|
||||
|
||||
def processPersons(session, additionalIdSeq):
|
||||
"""Fetch persons, create triples for them."""
|
||||
|
|
Loading…
Reference in New Issue