Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(schema): schema reference based on cnschema #105

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions openkg/cnschema/事件/Event.schema
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
namespace Openkg

Event(事件): EventType
properties:
subject(主体): Text
desc: 可能为人物、机构等,需要结合具体事件考虑,此处使用Text暂时替代
object(客体): Text
startTime(开始时间): STD.Date
endTime(结束时间): STD.Date
location(地点): Text
eventDescription(事件描述): Text
involvedEntities(参与实体): Text
causalRelationship(事件因果关系): Text
eventFrequency(事件频率): Text
eventSource(事件来源): Text

# eventAttributes(事件属性): Text
# type(事件类型: conceptType(政策事件、行业事件、用户行为事件)
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
namespace Openkg

DiseaseType(疾病类型): ConceptType
hypernymPredicate: isA

Organization(机构): EntityType

Place(地点): EventType

HealthcareEvent(事件): EventType
properties:
subject(主体): Organization
desc: 可能是疾病、医疗技术、药品、政策等
startTime(发生时间): STD.Date
endTime(结束时间): STD.Date
location(地点): Place
disease(疾病类型): DiseaseType
desc: 如果事件与疾病相关,可以描述疾病的名称
severity(严重程度): Text
desc: 疾病的严重程度或者公共卫生事件的影响程度
stage(发展阶段): Text
desc: 疾病的阶段或者医疗技术、新药的研发阶段
treatment(治疗方式或技术创新): Text
desc: 描述用于治疗疾病的方式或者医疗技术创新的具体内容
policyChange(健康政策变化): Text
desc: 描述政策的具体变化和影响
impact(产生影响): Text
desc: 包括对公众健康的影响、对医疗系统的影响、对经济的影响等
scientificExplanation(科学解释和原因分析): Text
desc: 对事件发生的科学解释和原因分析
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
namespace Openkg

DiseaseType(疾病类型): ConceptType
hypernymPredicate: isA

Person(人物): EntityType

Organization(机构): EntityType

Disease(疾病): EntityType

Place(地点): EntityType

Disease(疾病): EntityType

Organization(机构): EntityType

PublicHealthEvent(公共卫生事件): EventType
properties:
subject(主体): Disease
desc: 疾病
object(客体): Person
desc: 受影响的人
startTime(发生时间): STD.Date
endTime(结束时间): STD.Date
location(地点): Place
IND#belongTo(属于): DiseaseType
desc: 如果事件与疾病相关,可以描述疾病的名称
affectedpopulation(受影响人数): Text
deathToll(死亡人数): Text
recoveredPersonnel(恢复人数): Text
routeOfTransmission(传播途径): Text
controlMeasures(控制措施): Text
partakeOrganization(参与机构): Organization
17 changes: 17 additions & 0 deletions openkg/cnschema/事件/社会文化事件/CultureEvent.schema
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
namespace Openkg

Organization(机构): EntityType

CultureEvent(社会文化事件): EventType
properties:
subject(主办方): Organization
startTime(举办时间): Date
druingTime(持续时间): Date
location(地点): Text
activitycontent(活动内容): Text
theme(主题): Text
audiencegroup(受众群体): Text
desc: 事件的目标受众群体,如年龄、性别、职业、兴趣爱好等。
participationmethods(参与方式): Text
desc: 参与者如何参与事件,如线上、线下、购票入场、在线直播等
effect(社会影响与意义): Text
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
namespace Openkg

Category(活动类型): ConceptType
hypernymPredicate: isA

Organization(机构): EntityType

URL(链接): EntityType

Status(状态): EntityType

Place(地点): EntityType

Person(人物): EntityType

ArtEvent(艺术活动): EventType
properties:
subject(主办方): Organization
eventType(活动类型): Category
desc: 描述活动所属类别,例如音乐会、戏剧表演、艺术展览、舞蹈演出、文学讲座等。
eventDescription(活动描述): Text
desc: 提供活动内容、特色及意义的详细说明。
startDateAndTime(开始日期与时间): STD.Date
desc: 标注活动开始的具体日期和时刻。
endDateAndTime(结束日期与时间): STD.Date
desc: 标注活动结束的具体日期和时刻。
duringTime(持续时间): Text
desc: 表示活动总时长或单场次时长,可以是时间段或具体小时数。
locationInfo(地点信息): Place
desc: 包括举办场所名称、地址以及经纬度坐标等地理位置数据。
mainArtists(主创人员): Person
desc: 列出参与创作或表演的主要艺术家名单。
constraint: MultiValue
ticketPrice(门票价格): Text
desc: 单价、套票价格信息,也可以标注是否免费入场。
ticketStatus(售票状态): Status
desc: 指示当前门票销售状况,如已售罄、在售、预售中等。
eventLink(活动链接): URL
desc: 官方网站、购票网址或其他关联网页链接。
promotionalImage(宣传图片): URL
desc: 展示活动形象的官方宣传图片或海报的网络链接地址。
targetAudience(目标受众群体): Person
desc: 描述活动主要面向的观众群体特征,包括但不限于年龄层、性别、职业、兴趣爱好等。
49 changes: 49 additions & 0 deletions openkg/cnschema/人物/Person.schema
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
namespace Openkg

Country(国家): EntityType

School(学校): EntityType

CreativeWork(创作): EntityType

Place(地点): EntityType

Organization(机构): EntityType

Person(人物): EntityType
properties:
additionalName(别名):Text
familyName(姓):Text
givenName(名):Text
gender(性别):STD.Gender
nationality(国籍):Country
nativePlace(籍贯):Text
ethnicity(民族):Text
phone(电话):Text
email(电子邮箱):STD.Email
homeLocation(家庭地址):Place
height(身高):Text
weight(体重):Text
birthDate(出生日期):STD.Date
birthPlace(出生地点):Place
deathDate(逝世日期):STD.Date
deathPlace(逝世地点):Place

graduatedSchool(毕业院校):School
educationLevel(学历):Text
major(专业):Text

workLocation(工作地点):Place
workUnit(工作单位):Organization
namedPosition(角色职位):Text
department(所属部门):Text

honor(荣誉):Text
awards(所获奖项):Text
works(作品):CreativeWork

father(父亲):Person
mother(母亲):Person
spouse(配偶):Person
sibling(兄弟姐妹):Person
children(子女):Person
23 changes: 23 additions & 0 deletions openkg/cnschema/人物/体育/SportsPeople.schema
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
namespace Openkg

SportsField(体育领域): ConceptType
hypernymPredicate: isA

SportsCategory(运动项目): ConceptType
hypernymPredicate: isA

Organization(机构): EntityType

SportsPeople(体育界人士): EntityType
desc: 包括运动员、教练、裁判、体育管理人员等
properties:
debutDate(出道日期): STD.Date
sportsCategory(运动项目): SportsCategory
achievements(成就): Text
constraint: MultiValue
teamsRepresented(代表队伍): Organization
constraint: MultiValue
coachingExperience(执教经历): Text
officiatingExperience(裁判经历): Text
administrativeRoles(管理职务): Text
IND#belongTo(所属领域): SportsField
24 changes: 24 additions & 0 deletions openkg/cnschema/人物/医疗与健康/MedicalPersonnel.schema
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
namespace Openkg

MedicalField(医疗领域): ConceptType
hypernymPredicate: isA

Organization(机构): EntityType

Person(人物): EntityType

MedicalPersonnel(医疗人员): EntityType
desc: 包括医生、护士、药剂师、医技人员等
properties:
bloodGroup(血型): Text
professionalTitle(职称): Text
certificateNumber(执业证书号码): Text
educationalBackground(教育背景): Text
seniority(从业年限): Text
affiliatedHospital(所属医院): Organization
serviceDepartment(服务科室): Text
patients(病人): Person
constraint: MultiValue
immediateSuperior(上级领导): Person
constraint: MultiValue
IND#belongTo(属于): MedicalField
17 changes: 17 additions & 0 deletions openkg/cnschema/人物/历史人物/HistoricalFigures.schema
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
namespace Openkg

HistoricalFiguresField(历史人物领域): ConceptType
hypernymPredicate: isA

HistoricalFigures(历史人物): EntityType
desc: 包括已故的名人,他们在各个领域都有贡献
properties:
era(所处时代): Text
contributions(主要贡献): Text
constraint: MultiValue
knownFor(以...著称): Text
historicalContext(历史背景): Text
legacy(遗产或影响): Text
relatedFields(相关领域): Text
constraint: MultiValue
IND#belongTo(所属领域): HistoricalFiguresField
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
namespace Openkg

BusinessAndEconomicField(商业与经济领域): ConceptType
hypernymPredicate: isA

Organization(机构): EntityType

Product(物品): EntityType

BusinessAndEconomicPeople(商经界人士): EntityType
desc: 包括企业家、投资人、经济学家、金融专家、管理顾问等
properties:
businessVentures(商业投资项目): Text
constraint: MultiValue
economicTheories(经济理论或贡献): Text
affiliatedCompanies(所属公司或机构): Organization
investmentPortfolio(投资组合): Text
consultingServices(咨询服务): Text
publications(出版物): Product
constraint: MultiValue
IND#belongTo(所属领域): BusinessAndEconomicField
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
namespace Openkg

Entertainment(娱乐领域): ConceptType
desc: 指明个体主要在哪个娱乐领域活动,如电影、电视、音乐、戏剧等
hypernymPredicate: isA

Product(物品): EntityType

EntertainmentOfPeople(娱乐圈的人): EntityType
desc: 包括演员、歌手、导演、编剧、模特、主播等
properties:
debutDate(出道日期): STD.Date
participatingWorks(参与作品): Text
constraint: MultiValue
representativeWorks(代表作品): Product
constraint: MultiValue
affiliation(所属团体): Text
socialMediaProfiles(社交媒体账号): Text
desc: 个人在不同社交媒体平台上的账号链接。
popularity(人气指数): Text
desc: 衡量个体在公众中的受欢迎程度。
educationalBackground(教育背景): Text
IND#belongTo(所属领域): Entertainment
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
namespace Openkg

PoliticalAndLegalField(政治与法律领域): ConceptType
hypernymPredicate: isA

PoliticalAndLegalPeople(政法人士): EntityType
desc: 包括政治家、政府官员、法官、律师、外交官、活动家等
properties:
politicalAffiliation(政治隶属关系): Text
officeHeld(曾任职务): Text
constraint: MultiValue
legalPracticeArea(法律执业领域): Text
notableCases(知名案件): Text
constraint: MultiValue
diplomaticPosts(外交职位): Text
constraint: MultiValue
educationalBackground(教育背景): Text
publicServiceYears(公职年数): Text
IND#belongTo(所属领域): PoliticalAndLegalField
21 changes: 21 additions & 0 deletions openkg/cnschema/人物/教育/EducationPeople.schema
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
namespace Openkg

Organization(机构): EntityType

Product(物品): EntityType

EducationField(教育领域): ConceptType
hypernymPredicate: isA

EducationPeople(教育界人士): EntityType
desc: 包括教育家、学者、教师、研究员等
properties:
teachingSubjects(教授科目): Text
researchInterests(研究兴趣): Text
institutionsAffiliated(所属院校): Organization
constraint: MultiValue
publications(出版物): Product
constraint: MultiValue
educationalPhilosophy(教育理念): Text
teachingExperience(教学经验): Text
IND#belongTo(所属领域): EducationField
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
namespace Openkg

LiteraryAndArtisticField(文学与艺术领域): ConceptType
hypernymPredicate: isA

Organization(机构): EntityType

Product(物品): EntityType

Person(人物): EntityType

LiteraryAndArtisticPeople(文学与艺术界的人): EntityType
desc: 包括作家、诗人、画家、雕塑家、摄影师、设计师、建筑师、音乐家、舞蹈家等
properties:
debutDate(出道日期): STD.Date
notableWorks(代表作品): Product
constraint: MultiValue
artisticStyle(艺术风格): Text
exhibitions(参展经历): Text
constraint: MultiValue
influences(影响因素或人物): Person
constraint: MultiValue
affiliation(所属团队): Organization
socialMediaProfiles(社交媒体账号): Text
popularity(知名度): Text
desc: 衡量个体在公众或专业领域的认知度。
IND#belongTo(所属领域): LiteraryAndArtisticField
Loading
Loading