示例#1
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')
示例#2
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')
示例#3
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']
示例#4
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')
示例#5
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')
示例#6
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')
示例#7
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')
示例#8
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')
示例#9
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')
    parent = OrderedRelation(Org, 'subOrganizationOf')
    other_names = StringProperty(Opengov, 'otherName')
    links = StringProperty(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')
示例#10
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')
示例#11
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'
示例#12
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'
示例#13
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')
示例#14
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')
示例#15
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')
示例#16
0
class Motion(Opengov, owl.Thing):
    attachment = Relation(Schema, 'attachment')
    legislative_session = StringProperty(Opengov, 'legislativeSession')
    requirement = StringProperty(Opengov, 'requirement')
    classification = StringProperty(Schema, 'additionalType')
    status = StringProperty(Meeting, 'status')
    creator = Relation(Schema, 'creator')
    cocreator = Relation(Meeting, 'cocreator')
    date = DateProperty(Schema, 'dateSubmitted')
    name = StringProperty(Schema, 'name')
    organization = Relation(Schema, 'publisher')
    is_referenced_by = Relation(Dcterms, 'isReferencedBy')
    text = StringProperty(Schema, 'text')
    result = StringProperty(Opengov, 'result')
    vote_event = Relation(Opengov, 'voteEvent')
示例#17
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,
                                         ])
示例#18
0
class Report(MeetingNS, schema.Event, schema.CreativeWork):
    description = StringProperty(Schema, 'description')
    result = StringProperty(Opengov, 'result')
    attachment = Relation(MeetingNS, 'attachment')
示例#19
0
class Result(Opengov, owl.Thing):
    text = StringProperty(Schema, 'text')
    vote_event = Relation(Opengov, 'voteEvent')
示例#20
0
class Amendment(MeetingNS, opengov.Motion):
    """A proposal to modify another proposal. Subclass of
    :class:`.opengov.Motion`
    """
    amends = Relation(MeetingNS, 'amends')
示例#21
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')
示例#22
0
class Count(Opengov, owl.Thing):
    value = IntegerProperty(Rdf, 'value')
    group = Relation(Opengov, 'group')
示例#23
0
class Thing(Owl, Model):
    classification = ArrayProperty(Ncal, 'categories')  # todo fix with popolo
    meta = Relation(Meta, 'meta')
示例#24
0
class Agent(Foaf, owl.Thing):
    has_member = Relation(Org, 'hasMember')
    member_of = Relation(Org, 'memberOf')