Skip to content

Missing colums for lastEditor and eventInSeries #173

Description

@WolfgangFahl

We might want to eat our own dog food and use "specification by example":
adding the third example fixes the problem ..

class Event(JSONAble):
    '''
    I represent an Event
    
    see https://rq.bitplan.com/index.php/Event
    '''
    def __init__(self):
        '''
        Constructor
        '''
        
    @classmethod
    def getSamples(cls):
        samplesLOD=[{
            "pageTitle": "ICSME 2020",
            "acronym":"ICSME 2020",
            "ordinal": 36,
            "evenType": "Conference",
            "subject": "Software engineering",
            "startDate":  datetime.fromisoformat("2020-09-27"),
            "endDate":  datetime.fromisoformat("2020-09-27")
        },
        {
            "pageTitle": "WebSci 2019",
            "acronym": "WebSci 2019",
            "ordinal": 10,
            "homepage": "http://websci19.webscience.org/",
            "title": "10th ACM Conference on Web Science",
            "eventType": "Conference",
            "startDate": datetime.fromisoformat("2019-06-30"),
            "endDate": datetime.fromisoformat("2019-07-03"),
            "inEventSeries": "WebSci",
            "country": "USA",
            "region": "US-MA",
            "city": "Boston",
            "acceptedPapers": 41,
            "submittedPapers": 120
        },
        {
            "acronym": "5GU 2017",
            "city": "Melbourne",
            "country": "Australia",
            "creationDate": datetime.fromisoformat("2016-09-25T07:36:02"),
            "endDate": datetime.fromisoformat("2017-06-09T00:00:00"),
            "eventType": "Conference",
            "homepage": "http://5guconference.org/2017/show/cf-papers",
            "inEventSeries": "5GU",
            "lastEditor": "Wolfgang Fahl",
            "modificationDate": datetime.fromisoformat("2020-11-05T12:33:23"),
            "ordinal": 2,
            "pageTitle": "5GU 2017",
            "startDate": datetime.fromisoformat("2017-06-08T00:00:00"),
            "title": "2nd EAI International Conference on 5G for Ubiquitous Connectivity"
        }
        ]
        return samplesLOD
def testEventCorpus(self):
        '''
        '''
        eventCorpus=self.getEventCorpus(debug=self.debug)
        listOfEvents=eventCorpus.eventList.getList()
        withSeries=0
        for event in listOfEvents:
            self.assertTrue(hasattr(event, 'lastEditor'))
            if hasattr(event,'inEventSeries'): withSeries+=1
        if self.debug:
            print(f"inEventsiers: {withSeries}")
        self.assertTrue(withSeries>4500)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

MigrationMigration steps or prerequisitesWP 2.5 Interlinked Metadatahttps://wiki.tib.eu/jira/browse/CONFIDENT-308WP 2.6 Datahttps://wiki.tib.eu/jira/browse/CONFIDENT-121WP 2.7 Hostinghttps://wiki.tib.eu/jira/browse/CONFIDENT-309automationneeds automationbugshowstopper

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions