Esempio n. 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']
Esempio n. 2
0
class Thing(Owl, Model):
    classification = ArrayProperty(Ncal, 'categories')  # todo fix with popolo
    meta = Relation(Meta, 'meta')
    canonical_iri = StringProperty(Meta, 'canonical_iri')
    canonical_id = StringProperty(Meta, 'canonical_id')
    # has_organization_name is used to set the municipality or province ID on every item (see issue #141)
    has_organization_name = Relation(Vcard, 'hasOrganizationName')
Esempio n. 3
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')
Esempio n. 4
0
class ImageObject(Schema, owl.Thing):
    content_url = StringProperty(Schema, 'contentUrl')
    is_based_on = StringProperty(Schema, 'isBasedOn')
    file_format = StringProperty(Schema, 'fileFormat')
    content_size = StringProperty(Schema, 'contentSize')
    encoding_format = StringProperty(Schema, 'encodingFormat')
    exif_data = ArrayProperty(Schema, 'exifData')
    width = StringProperty(Schema, 'width')
    height = StringProperty(Schema, 'height')

    enricher_task = 'image_metadata'
Esempio n. 5
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'
Esempio n. 6
0
class Thing(Owl, Model):
    classification = ArrayProperty(Ncal, 'categories')  # todo fix with popolo
    meta = Relation(Meta, 'meta')
Esempio n. 7
0
class Thing(Owl, Model):
    classification = ArrayProperty(Ncal, 'categories')  # todo fix with popolo
    was_generated_by = NestedProperty(Prov, 'wasGeneratedBy')
    # has_organization_name is used to set the municipality or province ID on every item (see issue #141)
    has_organization_name = Relation(Vcard, 'hasOrganizationName')