Пример #1
0
class Vote(Opengov, owl.Thing):
    group = Relation(Opengov, 'politicalGroup')
    role = StringProperty(Opengov, 'role')
    voter = Relation(Schema, 'agent')
    vote_event = Relation(Opengov, 'voteEvent')
    option = Relation(Opengov, 'voteOption')
    weight = IntegerProperty(Opengov, 'weight')
Пример #2
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']
Пример #3
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')
Пример #4
0
class MediaObject(Schema, owl.Thing):
    name = StringProperty(Schema, 'name')
    url = StringProperty(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, 'fileFormat')
    original_url = StringProperty(Schema, 'isBasedOn')
    text = StringProperty(Schema, 'text')

    enricher_task = 'file_to_text'
Пример #5
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')
    position = IntegerProperty(Schema, 'position')
    parent = Relation(Schema, 'superEvent')
    vote_event = Relation(Opengov, 'voteEvent')
    attendee = Relation(Schema, 'attendee')
    absentee = Relation(Schema, 'absentee')
    agenda = Relation(MeetingNS, 'agenda')
Пример #6
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'
Пример #7
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,
                                         ])
Пример #8
0
class Count(Opengov, owl.Thing):
    value = IntegerProperty(Rdf, 'value')
    group = Relation(Opengov, 'group')