Пример #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']
Пример #2
0
class ImageObject(Schema, owl.Thing):
    content_url = URLProperty(Schema, 'contentUrl')
    is_based_on = URLProperty(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'
Пример #3
0
class Organization(Org, foaf.Agent):
    area = Relation(Opengov, 'area')
    contact_details = Relation(Opengov, 'contactDetail')
    abstract = StringProperty(Dcterms, 'abstract')
    description = StringProperty(Dcterms, 'description')
    classification = StringProperty(Org, 'classification')
    subOrganizationOf = OrderedRelation(Org, 'subOrganizationOf')
    other_names = StringProperty(Opengov, 'otherName')
    links = URLProperty(Rdf, 'seeAlso')
    dissolution_date = StringProperty(Schema, 'dissolutionDate')
    founding_date = StringProperty(Schema, 'foundingDate')
    image = StringProperty(Schema, 'image')
    alt_label = StringProperty(Skos, 'altLabel')
    name = StringProperty(Skos, 'prefLabel')
    collection = StringProperty(Meta, 'collection')
    homepage = URLProperty(Vcard, 'url')
    email = StringProperty(Vcard, 'email')
Пример #4
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'
Пример #5
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 = URLProperty(Rdfs, 'seeAlso')
    birth_date = DateTimeProperty(Schema, 'birthDate')
    death_date = DateTimeProperty(Schema, 'deathDate')
    email = StringProperty(Schema, 'email')
    image = Relation(Schema, 'image')
    phone = StringProperty(Schema, 'telephone')
Пример #6
0
class Meeting(MeetingNS, schema.Event):
    """An assembly of people for a particular purpose, especially for formal
    discussion. Subclass of :class:`.schema.Event`
    """
    agenda = OrderedRelation(MeetingNS, 'agenda')
    attachment = Relation(MeetingNS, 'attachment')
    motion = Relation(Opengov, 'motion')
    attendee = Relation(Schema, 'attendee')
    audio = Relation(Schema, 'audio')
    description = StringProperty(Schema, 'description')
    status = URLProperty(Schema, 'eventStatus')
    location = StringProperty(Schema, 'location')
    name = StringProperty(Schema, 'name', required=True)
    organization = Relation(Schema, 'organizer', required=True)
    committee = Relation(MeetingNS, 'committee')
    parent = Relation(Schema, 'superEvent')
    chair = StringProperty(MeetingNS, 'chair')
    absentee = Relation(Schema, 'absentee')
    invitee = Relation(Schema, 'invitee')
Пример #7
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')
Пример #8
0
class VideoObject(Schema, owl.Thing):
    content_url = URLProperty(Schema, 'contentUrl')
Пример #9
0
class AudioObject(Schema, owl.Thing):
    contentUrl = URLProperty(Schema, 'contentUrl')