Example #1
0
class MediaObject(Schema, owl.Thing):
    name = StringProperty(Schema, 'name')
    url = URLProperty(Schema, 'contentUrl')
    size_in_bytes = IntegerProperty(Schema, 'fileSize')
    file_type = StringProperty(Schema, 'fileType')
    additional_type = StringProperty(Schema, 'additionalType')
    creator = Relation(Schema, 'creator')
    content_type = StringProperty(Schema, 'encodingFormat')
    upload_date = DateProperty(Schema, 'uploadDate')
    caption = StringProperty(Schema, 'caption')
    embed_url = StringProperty(Schema, 'embedUrl')
    file_name = StringProperty(Dbo, 'filename')
    date_modified = DateTimeProperty(Schema, 'dateModified')
    original_url = URLProperty(Schema, 'isBasedOn')
    text = ArrayProperty(Schema, 'text')
    enriched_text = ArrayProperty(MeetingNS, 'enrichedText')
    text_pages = JsonProperty(MeetingNS,
                              'textPages',
                              ignore_for_loader=[DeltaLoader])
    is_referenced_by = Relation(Dcterms, 'isReferencedBy')
    last_discussed_at = DateTimeProperty(MeetingNS,
                                         'lastDiscussedAt',
                                         ignore_for_loader=[DeltaLoader])
    tags = JsonProperty(MeetingNS, 'tags')
    neighborhood_polygons = JsonProperty(MeetingNS, 'neighborhood_polygons')
    geometry = JsonProperty(MeetingNS, 'geometry')
    districts = ArrayProperty(Cbs, 'Wijk')
    neighborhoods = ArrayProperty(Cbs, 'Buurt')

    enricher_task = ['theme_classifier', 'waaroverheid']
Example #2
0
class ContactDetail(Opengov, owl.Thing):
    type = StringProperty(Rdf, 'type')
    value = StringProperty(Rdf, 'value')
    label = StringProperty(Rdfs, 'label')
    valid_from = DateTimeProperty(Schema, 'validFrom')
    note = StringProperty(Skos, 'note')
    valid_until = DateTimeProperty(Opengov, 'validUntil')
Example #3
0
class Membership(Org, owl.Thing):
    label = StringProperty(Skos, 'prefLabel')
    member = Relation(Org, 'member')
    organization = Relation(Org, 'organization')
    role = StringProperty(Org, 'role')
    start_date = DateTimeProperty(Schema, 'validFrom')
    end_date = DateTimeProperty(Opengov, 'validUntil')
Example #4
0
class Activity(Prov, owl.Thing):
    started_at_time = DateTimeProperty(Prov, 'startedAtTime')
    ended_at_time = DateTimeProperty(Prov, 'endedAtTime')
    used = StringProperty(Prov, 'used')
    generated = StringProperty(Prov, 'generated')
    had_primary_source = StringProperty(Prov, 'hadPrimarySource')
    same_as = StringProperty(Owl, 'sameAs')
    app_semver = StringProperty(Meeting, 'semver')
    original_identifier = StringProperty(Meeting, 'originalIdentifier')
    reference_identifier = StringProperty(Meeting, 'referenceIdentifier')
Example #5
0
class VoteEvent(Opengov, schema.Event):
    classification = ArrayProperty(Ncal, 'categories')
    created_at = DateTimeProperty(Dcterms, 'created')
    updated_at = DateTimeProperty(Dcterms, 'modified')
    motion = Relation(Opengov, 'motion')
    result = StringProperty(Opengov, 'result')
    organization = Relation(Schema, 'organizer')
    legislative_session = Relation(Schema, 'superEvent')
    votes = Relation(Opengov, 'vote')
    counts = Relation(Opengov, 'count')
Example #6
0
class Speech(Opengov, owl.Thing):
    attribution_text = StringProperty(Opengov, 'attributionText')
    audience = Relation(Dcterms, 'audience')
    event = Relation(Bibframe, 'event')
    role = Relation(Opengov, 'role')
    audio = Relation(Schema, 'audio')
    creator = Relation(Schema, 'creator')
    end_date = DateTimeProperty(Schema, 'endDate')
    position = IntegerProperty(Schema, 'position')
    start_date = DateTimeProperty(Schema, 'startDate')
    text = StringProperty(Schema, 'text')
    video = StringProperty(Schema, 'video')
Example #7
0
class CreativeWork(Schema, owl.Thing):
    legislative_session = Relation(Opengov, 'legislativeSession')
    creator = Relation(Schema, 'creator')
    date_created = DateTimeProperty(Schema, 'dateCreated')
    name = StringProperty(Schema, 'name')
    organizer = Relation(Schema, 'organizer')
    text = StringProperty(Schema, 'text')
Example #8
0
class Person(PersonNS, foaf.Agent):
    biography = StringProperty(Bio, 'biography')
    contact_details = Relation(Opengov, 'contactDetail')
    alternative_name = StringProperty(Dcterms, 'alternative')
    family_name = StringProperty(Foaf, 'familyName')
    gender = StringProperty(Foaf, 'gender')
    given_name = StringProperty(Foaf, 'givenName')
    name = StringProperty(Foaf, 'name')
    national_identity = StringProperty(Opengov, 'nationalIdentity')
    summary = StringProperty(Bio, 'olb')
    other_names = StringProperty(Opengov, 'otherName')
    links = StringProperty(Rdfs, 'seeAlso')
    birth_date = DateTimeProperty(Schema, 'birthDate')
    death_date = DateTimeProperty(Schema, 'deathDate')
    email = StringProperty(Schema, 'email')
    image = Relation(Schema, 'image')
Example #9
0
class Metadata(Meta, owl.Thing):
    # todo needs to be formalized in a ontology
    status = StringProperty(Meta, 'status')
    processing_started = DateTimeProperty(Meta, 'processingStarted')
    source_id = StringProperty(Meta, 'sourceId')
    collection = StringProperty(Meta, 'collection')
    rights = StringProperty(Meta, 'rights')

    skip_validation = True
Example #10
0
class Motion(Opengov, owl.Thing):
    attachment = Relation(Schema, 'attachment')
    legislative_session = StringProperty(Opengov, 'legislativeSession')
    requirement = StringProperty(Opengov, 'requirement')
    classification = StringProperty(Schema, 'additionalType')
    creator = Relation(Schema, 'creator')
    cocreator = Relation(Meeting, 'cocreator')
    date = DateTimeProperty(Schema, 'dateSubmitted')
    name = StringProperty(Schema, 'name')
    organization = Relation(Schema, 'publisher')
    text = StringProperty(Schema, 'text')
    vote_events = Relation(Opengov, 'voteEvent')
Example #11
0
class Person(PersonNS, foaf.Agent):
    biography = StringProperty(Bio, 'biography')
    contact_details = Relation(Opengov, 'contactDetail')
    alternative_name = StringProperty(Dcterms, 'alternative')
    family_name = StringProperty(Foaf, 'familyName')
    gender = StringProperty(Foaf, 'gender')
    given_name = StringProperty(Foaf, 'givenName')
    additional_name = StringProperty(Schema, 'additionalName')
    home_location = StringProperty(Schema, 'homeLocation')
    honorific_prefix = StringProperty(Schema, 'honorificPrefix')
    honorific_suffix = StringProperty(Schema, 'honorificSuffix')
    nickname = StringProperty(Vcard, 'nickname')
    initials = StringProperty(Meeting, 'initials')
    name = StringProperty(Foaf, 'name')
    national_identity = StringProperty(Opengov, 'nationalIdentity')
    summary = StringProperty(Bio, 'olb')
    other_names = StringProperty(Opengov, 'otherName')
    links = URLProperty(Rdfs, 'seeAlso')
    birth_place = StringProperty(Schema, 'birthPlace')
    birth_date = DateTimeProperty(Schema, 'birthDate')
    death_date = DateTimeProperty(Schema, 'deathDate')
    email = StringProperty(Schema, 'email')
    image = Relation(Schema, 'image')
    phone = StringProperty(Schema, 'telephone')
Example #12
0
class MediaObject(Schema, owl.Thing):
    name = StringProperty(Schema, 'name')
    url = URLProperty(Schema, 'contentUrl')
    size_in_bytes = IntegerProperty(Schema, 'fileSize')
    file_type = StringProperty(Schema, 'fileType')
    additional_type = StringProperty(Schema, 'additionalType')
    creator = Relation(Schema, 'creator')
    content_type = StringProperty(Schema, 'encodingFormat')
    upload_date = DateProperty(Schema, 'uploadDate')
    caption = StringProperty(Schema, 'caption')
    embed_url = StringProperty(Schema, 'embedUrl')
    file_name = StringProperty(Dbo, 'filename')
    date_modified = DateTimeProperty(Schema, 'dateModified')
    original_url = URLProperty(Schema, 'isBasedOn')
    text = ArrayProperty(Schema, 'text')
    isReferencedBy = Relation(Dcterms, 'isReferencedBy')

    enricher_task = 'file_to_text'
Example #13
0
class AgendaItem(MeetingNS, schema.Event):
    """An item in a list of topics to be discussed at an event. Subclass of
    :class:`.schema.Event`
    """
    attachment = Relation(MeetingNS, 'attachment')
    motion = Relation(Opengov, 'motion')
    description = StringProperty(Schema, 'description')
    name = StringProperty(Schema, 'name', required=True)
    position = IntegerProperty(Schema, 'position')
    parent = Relation(Schema, 'superEvent', required=True)
    vote_event = Relation(Opengov, 'voteEvent')
    attendee = Relation(Schema, 'attendee')
    absentee = Relation(Schema, 'absentee')
    agenda = Relation(MeetingNS, 'agenda')
    last_discussed_at = DateTimeProperty(MeetingNS,
                                         'lastDiscussedAt',
                                         ignore_for_loader=[
                                             DeltaLoader,
                                         ])
Example #14
0
class Event(Schema, owl.Thing):
    end_date = DateTimeProperty(Schema, 'endDate')
    start_date = DateTimeProperty(Schema, 'startDate')
Example #15
0
class Event(Schema, owl.Thing):
    end_date = DateTimeProperty(Schema, 'endDate')
    start_date = DateTimeProperty(Schema, 'startDate')
    last_discussed_at = DateTimeProperty(MeetingNS,
                                         'lastDiscussedAt',
                                         ignore_for_loader=[DeltaLoader])