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."""