From 6cf6aaf4da32e63ec26c449ef67995980b83c571 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Sat, 1 Mar 2014 11:20:22 +0100 Subject: [PATCH] [TASK] Disable membership begin/end date triplification due to ugly data. --- triplify.py | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/triplify.py b/triplify.py index 4fb95f6..3853e4f 100644 --- a/triplify.py +++ b/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."""