mirror of
https://github.com/p2p-ld/linkml-activitypub.git
synced 2025-01-08 20:54:28 +00:00
delete the default models
This commit is contained in:
parent
26e3b1ef0c
commit
df18975493
11 changed files with 0 additions and 1995 deletions
Binary file not shown.
|
@ -1,67 +0,0 @@
|
|||
type Address
|
||||
{
|
||||
street: String
|
||||
city: String
|
||||
postalCode: String
|
||||
}
|
||||
|
||||
type FamilialRelationship
|
||||
{
|
||||
startedAtTime: Date
|
||||
endedAtTime: Date
|
||||
relatedTo: String
|
||||
type: FamilialRelationshipType!
|
||||
relatedTo: Person!
|
||||
}
|
||||
|
||||
interface HasAliases
|
||||
{
|
||||
aliases: [String]
|
||||
}
|
||||
|
||||
type NamedThing
|
||||
{
|
||||
id: String!
|
||||
name: String
|
||||
description: String
|
||||
image: String
|
||||
}
|
||||
|
||||
type Organization implements HasAliases
|
||||
{
|
||||
id: String!
|
||||
name: String
|
||||
description: String
|
||||
image: String
|
||||
missionStatement: String
|
||||
foundingDate: String
|
||||
aliases: [String]
|
||||
}
|
||||
|
||||
type Person implements HasAliases
|
||||
{
|
||||
id: String!
|
||||
name: String
|
||||
description: String
|
||||
image: String
|
||||
primaryEmail: String
|
||||
birthDate: String
|
||||
ageInYears: Integer
|
||||
currentAddress: Address
|
||||
hasFamilialRelationships: [FamilialRelationship]
|
||||
aliases: [String]
|
||||
}
|
||||
|
||||
type Registry
|
||||
{
|
||||
persons: [Person]
|
||||
organizations: [Organization]
|
||||
}
|
||||
|
||||
type Relationship
|
||||
{
|
||||
startedAtTime: Date
|
||||
endedAtTime: Date
|
||||
relatedTo: String
|
||||
type: String
|
||||
}
|
|
@ -1,76 +0,0 @@
|
|||
{
|
||||
"_comments": "Auto generated from activitystreams.yaml by jsonldcontextgen.py version: 0.1.1\n Generation date: 2022-09-06T10:01:44\n Schema: my_datamodel\n metamodel version: 1.7.0\n model version: None\n \n id: https://w3id.org/my_org/my_datamodel\n description: Enter a detailed description of your project here\n license: https://creativecommons.org/publicdomain/zero/1.0/\n ",
|
||||
"@context": {
|
||||
"PATO": {
|
||||
"@id": "http://purl.obolibrary.org/obo/PATO_",
|
||||
"@prefix": true
|
||||
},
|
||||
"biolink": "https://w3id.org/biolink/",
|
||||
"famrel": "http://example.org/famrel/",
|
||||
"linkml": "https://w3id.org/linkml/",
|
||||
"my_datamodel": {
|
||||
"@id": "https://w3id.org/my_org/my_datamodel",
|
||||
"@prefix": true
|
||||
},
|
||||
"prov": "http://www.w3.org/ns/prov#",
|
||||
"schema": "http://schema.org/",
|
||||
"@vocab": "https://w3id.org/my_org/my_datamodel",
|
||||
"age_in_years": {
|
||||
"@type": "xsd:integer"
|
||||
},
|
||||
"birth_date": {
|
||||
"@id": "schema:birthDate"
|
||||
},
|
||||
"current_address": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"description": {
|
||||
"@id": "schema:description"
|
||||
},
|
||||
"employed_at": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"ended_at_time": {
|
||||
"@type": "xsd:date",
|
||||
"@id": "prov:endedAtTime"
|
||||
},
|
||||
"has_familial_relationships": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"id": "@id",
|
||||
"image": {
|
||||
"@id": "schema:image"
|
||||
},
|
||||
"is_current": {
|
||||
"@type": "xsd:boolean"
|
||||
},
|
||||
"name": {
|
||||
"@id": "schema:name"
|
||||
},
|
||||
"primary_email": {
|
||||
"@id": "schema:email"
|
||||
},
|
||||
"organizations": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"persons": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"related_to": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"started_at_time": {
|
||||
"@type": "xsd:date",
|
||||
"@id": "prov:startedAtTime"
|
||||
},
|
||||
"Address": {
|
||||
"@id": "schema:PostalAddress"
|
||||
},
|
||||
"Organization": {
|
||||
"@id": "schema:Organization"
|
||||
},
|
||||
"Person": {
|
||||
"@id": "schema:Person"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,824 +0,0 @@
|
|||
{
|
||||
"name": "my_datamodel",
|
||||
"description": "Enter a detailed description of your project here",
|
||||
"title": "My Datamodel",
|
||||
"see_also": [
|
||||
"https://example.org/"
|
||||
],
|
||||
"id": "https://w3id.org/my_org/my_datamodel",
|
||||
"imports": [
|
||||
"linkml:types"
|
||||
],
|
||||
"license": "https://creativecommons.org/publicdomain/zero/1.0/",
|
||||
"prefixes": [
|
||||
{
|
||||
"prefix_prefix": "my_datamodel",
|
||||
"prefix_reference": "https://w3id.org/my_org/my_datamodel"
|
||||
},
|
||||
{
|
||||
"prefix_prefix": "linkml",
|
||||
"prefix_reference": "https://w3id.org/linkml/"
|
||||
},
|
||||
{
|
||||
"prefix_prefix": "biolink",
|
||||
"prefix_reference": "https://w3id.org/biolink/"
|
||||
},
|
||||
{
|
||||
"prefix_prefix": "schema",
|
||||
"prefix_reference": "http://schema.org/"
|
||||
},
|
||||
{
|
||||
"prefix_prefix": "PATO",
|
||||
"prefix_reference": "http://purl.obolibrary.org/obo/PATO_"
|
||||
},
|
||||
{
|
||||
"prefix_prefix": "famrel",
|
||||
"prefix_reference": "http://example.org/famrel/"
|
||||
}
|
||||
],
|
||||
"default_curi_maps": [
|
||||
"semweb_context"
|
||||
],
|
||||
"default_prefix": "my_datamodel",
|
||||
"default_range": "string",
|
||||
"types": [
|
||||
{
|
||||
"name": "string",
|
||||
"definition_uri": "https://w3id.org/linkml/String",
|
||||
"description": "A character string",
|
||||
"from_schema": "https://w3id.org/linkml/types",
|
||||
"imported_from": "linkml:types",
|
||||
"base": "str",
|
||||
"uri": "http://www.w3.org/2001/XMLSchema#string",
|
||||
"@type": "TypeDefinition"
|
||||
},
|
||||
{
|
||||
"name": "integer",
|
||||
"definition_uri": "https://w3id.org/linkml/Integer",
|
||||
"description": "An integer",
|
||||
"from_schema": "https://w3id.org/linkml/types",
|
||||
"imported_from": "linkml:types",
|
||||
"base": "int",
|
||||
"uri": "http://www.w3.org/2001/XMLSchema#integer",
|
||||
"@type": "TypeDefinition"
|
||||
},
|
||||
{
|
||||
"name": "boolean",
|
||||
"definition_uri": "https://w3id.org/linkml/Boolean",
|
||||
"description": "A binary (true or false) value",
|
||||
"from_schema": "https://w3id.org/linkml/types",
|
||||
"imported_from": "linkml:types",
|
||||
"base": "Bool",
|
||||
"uri": "http://www.w3.org/2001/XMLSchema#boolean",
|
||||
"repr": "bool",
|
||||
"@type": "TypeDefinition"
|
||||
},
|
||||
{
|
||||
"name": "float",
|
||||
"definition_uri": "https://w3id.org/linkml/Float",
|
||||
"description": "A real number that conforms to the xsd:float specification",
|
||||
"from_schema": "https://w3id.org/linkml/types",
|
||||
"imported_from": "linkml:types",
|
||||
"base": "float",
|
||||
"uri": "http://www.w3.org/2001/XMLSchema#float",
|
||||
"@type": "TypeDefinition"
|
||||
},
|
||||
{
|
||||
"name": "double",
|
||||
"definition_uri": "https://w3id.org/linkml/Double",
|
||||
"description": "A real number that conforms to the xsd:double specification",
|
||||
"from_schema": "https://w3id.org/linkml/types",
|
||||
"imported_from": "linkml:types",
|
||||
"base": "float",
|
||||
"uri": "http://www.w3.org/2001/XMLSchema#double",
|
||||
"@type": "TypeDefinition"
|
||||
},
|
||||
{
|
||||
"name": "decimal",
|
||||
"definition_uri": "https://w3id.org/linkml/Decimal",
|
||||
"description": "A real number with arbitrary precision that conforms to the xsd:decimal specification",
|
||||
"from_schema": "https://w3id.org/linkml/types",
|
||||
"imported_from": "linkml:types",
|
||||
"base": "Decimal",
|
||||
"uri": "http://www.w3.org/2001/XMLSchema#decimal",
|
||||
"@type": "TypeDefinition"
|
||||
},
|
||||
{
|
||||
"name": "time",
|
||||
"definition_uri": "https://w3id.org/linkml/Time",
|
||||
"description": "A time object represents a (local) time of day, independent of any particular day",
|
||||
"notes": [
|
||||
"URI is dateTime because OWL reasoners do not work with straight date or time"
|
||||
],
|
||||
"from_schema": "https://w3id.org/linkml/types",
|
||||
"imported_from": "linkml:types",
|
||||
"base": "XSDTime",
|
||||
"uri": "http://www.w3.org/2001/XMLSchema#dateTime",
|
||||
"repr": "str",
|
||||
"@type": "TypeDefinition"
|
||||
},
|
||||
{
|
||||
"name": "date",
|
||||
"definition_uri": "https://w3id.org/linkml/Date",
|
||||
"description": "a date (year, month and day) in an idealized calendar",
|
||||
"notes": [
|
||||
"URI is dateTime because OWL reasoners don't work with straight date or time"
|
||||
],
|
||||
"from_schema": "https://w3id.org/linkml/types",
|
||||
"imported_from": "linkml:types",
|
||||
"base": "XSDDate",
|
||||
"uri": "http://www.w3.org/2001/XMLSchema#date",
|
||||
"repr": "str",
|
||||
"@type": "TypeDefinition"
|
||||
},
|
||||
{
|
||||
"name": "datetime",
|
||||
"definition_uri": "https://w3id.org/linkml/Datetime",
|
||||
"description": "The combination of a date and time",
|
||||
"from_schema": "https://w3id.org/linkml/types",
|
||||
"imported_from": "linkml:types",
|
||||
"base": "XSDDateTime",
|
||||
"uri": "http://www.w3.org/2001/XMLSchema#dateTime",
|
||||
"repr": "str",
|
||||
"@type": "TypeDefinition"
|
||||
},
|
||||
{
|
||||
"name": "date_or_datetime",
|
||||
"definition_uri": "https://w3id.org/linkml/DateOrDatetime",
|
||||
"description": "Either a date or a datetime",
|
||||
"from_schema": "https://w3id.org/linkml/types",
|
||||
"imported_from": "linkml:types",
|
||||
"base": "str",
|
||||
"uri": "https://w3id.org/linkml/DateOrDatetime",
|
||||
"repr": "str",
|
||||
"@type": "TypeDefinition"
|
||||
},
|
||||
{
|
||||
"name": "uriorcurie",
|
||||
"definition_uri": "https://w3id.org/linkml/Uriorcurie",
|
||||
"description": "a URI or a CURIE",
|
||||
"from_schema": "https://w3id.org/linkml/types",
|
||||
"imported_from": "linkml:types",
|
||||
"base": "URIorCURIE",
|
||||
"uri": "http://www.w3.org/2001/XMLSchema#anyURI",
|
||||
"repr": "str",
|
||||
"@type": "TypeDefinition"
|
||||
},
|
||||
{
|
||||
"name": "uri",
|
||||
"definition_uri": "https://w3id.org/linkml/Uri",
|
||||
"description": "a complete URI",
|
||||
"from_schema": "https://w3id.org/linkml/types",
|
||||
"imported_from": "linkml:types",
|
||||
"base": "URI",
|
||||
"uri": "http://www.w3.org/2001/XMLSchema#anyURI",
|
||||
"repr": "str",
|
||||
"@type": "TypeDefinition"
|
||||
},
|
||||
{
|
||||
"name": "ncname",
|
||||
"definition_uri": "https://w3id.org/linkml/Ncname",
|
||||
"description": "Prefix part of CURIE",
|
||||
"from_schema": "https://w3id.org/linkml/types",
|
||||
"imported_from": "linkml:types",
|
||||
"base": "NCName",
|
||||
"uri": "http://www.w3.org/2001/XMLSchema#string",
|
||||
"repr": "str",
|
||||
"@type": "TypeDefinition"
|
||||
},
|
||||
{
|
||||
"name": "objectidentifier",
|
||||
"definition_uri": "https://w3id.org/linkml/Objectidentifier",
|
||||
"description": "A URI or CURIE that represents an object in the model.",
|
||||
"comments": [
|
||||
"Used for inheritance and type checking"
|
||||
],
|
||||
"from_schema": "https://w3id.org/linkml/types",
|
||||
"imported_from": "linkml:types",
|
||||
"base": "ElementIdentifier",
|
||||
"uri": "http://www.w3.org/ns/shex#iri",
|
||||
"repr": "str",
|
||||
"@type": "TypeDefinition"
|
||||
},
|
||||
{
|
||||
"name": "nodeidentifier",
|
||||
"definition_uri": "https://w3id.org/linkml/Nodeidentifier",
|
||||
"description": "A URI, CURIE or BNODE that represents a node in a model.",
|
||||
"from_schema": "https://w3id.org/linkml/types",
|
||||
"imported_from": "linkml:types",
|
||||
"base": "NodeIdentifier",
|
||||
"uri": "http://www.w3.org/ns/shex#nonLiteral",
|
||||
"repr": "str",
|
||||
"@type": "TypeDefinition"
|
||||
}
|
||||
],
|
||||
"enums": [
|
||||
{
|
||||
"name": "PersonStatus",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelPersonStatus",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"permissible_values": [
|
||||
{
|
||||
"text": "ALIVE",
|
||||
"description": "the person is living",
|
||||
"meaning": "PATO:0001421"
|
||||
},
|
||||
{
|
||||
"text": "DEAD",
|
||||
"description": "the person is deceased",
|
||||
"meaning": "PATO:0001422"
|
||||
},
|
||||
{
|
||||
"text": "UNKNOWN",
|
||||
"description": "the vital status is not known",
|
||||
"todos": [
|
||||
"map this to an ontology"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "FamilialRelationshipType",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelFamilialRelationshipType",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"permissible_values": [
|
||||
{
|
||||
"text": "SIBLING_OF",
|
||||
"meaning": "famrel:01"
|
||||
},
|
||||
{
|
||||
"text": "PARENT_OF",
|
||||
"meaning": "famrel:02"
|
||||
},
|
||||
{
|
||||
"text": "CHILD_OF",
|
||||
"meaning": "famrel:01"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"slots": [
|
||||
{
|
||||
"name": "id",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelid",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"mappings": [
|
||||
"http://schema.org/identifier"
|
||||
],
|
||||
"slot_uri": "http://schema.org/identifier",
|
||||
"identifier": true,
|
||||
"owner": "NamedThing",
|
||||
"domain_of": [
|
||||
"NamedThing"
|
||||
],
|
||||
"range": "string",
|
||||
"required": true,
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelname",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"mappings": [
|
||||
"http://schema.org/name"
|
||||
],
|
||||
"slot_uri": "http://schema.org/name",
|
||||
"owner": "NamedThing",
|
||||
"domain_of": [
|
||||
"NamedThing"
|
||||
],
|
||||
"range": "string",
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodeldescription",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"mappings": [
|
||||
"http://schema.org/description"
|
||||
],
|
||||
"slot_uri": "http://schema.org/description",
|
||||
"owner": "NamedThing",
|
||||
"domain_of": [
|
||||
"NamedThing"
|
||||
],
|
||||
"range": "string",
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "image",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelimage",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"mappings": [
|
||||
"http://schema.org/image"
|
||||
],
|
||||
"slot_uri": "http://schema.org/image",
|
||||
"owner": "NamedThing",
|
||||
"domain_of": [
|
||||
"NamedThing"
|
||||
],
|
||||
"range": "string",
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "primary_email",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelprimary_email",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"mappings": [
|
||||
"http://schema.org/email"
|
||||
],
|
||||
"slot_uri": "http://schema.org/email",
|
||||
"owner": "Person",
|
||||
"domain_of": [
|
||||
"Person"
|
||||
],
|
||||
"range": "string",
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "birth_date",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelbirth_date",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"mappings": [
|
||||
"http://schema.org/birthDate"
|
||||
],
|
||||
"slot_uri": "http://schema.org/birthDate",
|
||||
"owner": "Person",
|
||||
"domain_of": [
|
||||
"Person"
|
||||
],
|
||||
"range": "string",
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "employed_at",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelemployed_at",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"slot_uri": "https://w3id.org/my_org/my_datamodelemployed_at",
|
||||
"range": "Organization",
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "is_current",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelis_current",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"slot_uri": "https://w3id.org/my_org/my_datamodelis_current",
|
||||
"range": "boolean",
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "has_familial_relationships",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelhas_familial_relationships",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"slot_uri": "https://w3id.org/my_org/my_datamodelhas_familial_relationships",
|
||||
"multivalued": true,
|
||||
"owner": "Person",
|
||||
"domain_of": [
|
||||
"Person"
|
||||
],
|
||||
"range": "FamilialRelationship",
|
||||
"inlined": true,
|
||||
"inlined_as_list": true,
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "current_address",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelcurrent_address",
|
||||
"description": "The address at which a person currently lives",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"slot_uri": "https://w3id.org/my_org/my_datamodelcurrent_address",
|
||||
"owner": "Person",
|
||||
"domain_of": [
|
||||
"Person"
|
||||
],
|
||||
"range": "Address",
|
||||
"inlined": true,
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "age_in_years",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelage_in_years",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"slot_uri": "https://w3id.org/my_org/my_datamodelage_in_years",
|
||||
"owner": "Person",
|
||||
"domain_of": [
|
||||
"Person"
|
||||
],
|
||||
"range": "integer",
|
||||
"minimum_value": 0,
|
||||
"maximum_value": 999,
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "related_to",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelrelated_to",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"slot_uri": "https://w3id.org/my_org/my_datamodelrelated_to",
|
||||
"owner": "Relationship",
|
||||
"domain_of": [
|
||||
"Relationship"
|
||||
],
|
||||
"range": "string",
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "type",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodeltype",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"slot_uri": "https://w3id.org/my_org/my_datamodeltype",
|
||||
"owner": "Relationship",
|
||||
"domain_of": [
|
||||
"Relationship"
|
||||
],
|
||||
"range": "string",
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "street",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelstreet",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"slot_uri": "https://w3id.org/my_org/my_datamodelstreet",
|
||||
"owner": "Address",
|
||||
"domain_of": [
|
||||
"Address"
|
||||
],
|
||||
"range": "string",
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "city",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelcity",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"slot_uri": "https://w3id.org/my_org/my_datamodelcity",
|
||||
"owner": "Address",
|
||||
"domain_of": [
|
||||
"Address"
|
||||
],
|
||||
"range": "string",
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "mission_statement",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelmission_statement",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"slot_uri": "https://w3id.org/my_org/my_datamodelmission_statement",
|
||||
"owner": "Organization",
|
||||
"domain_of": [
|
||||
"Organization"
|
||||
],
|
||||
"range": "string",
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "founding_date",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelfounding_date",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"slot_uri": "https://w3id.org/my_org/my_datamodelfounding_date",
|
||||
"owner": "Organization",
|
||||
"domain_of": [
|
||||
"Organization"
|
||||
],
|
||||
"range": "string",
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "postal_code",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelpostal_code",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"slot_uri": "https://w3id.org/my_org/my_datamodelpostal_code",
|
||||
"owner": "Address",
|
||||
"domain_of": [
|
||||
"Address"
|
||||
],
|
||||
"range": "string",
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "started_at_time",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelstarted_at_time",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"mappings": [
|
||||
"http://www.w3.org/ns/prov#startedAtTime"
|
||||
],
|
||||
"slot_uri": "http://www.w3.org/ns/prov#startedAtTime",
|
||||
"owner": "Relationship",
|
||||
"domain_of": [
|
||||
"Relationship"
|
||||
],
|
||||
"range": "date",
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "ended_at_time",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelended_at_time",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"mappings": [
|
||||
"http://www.w3.org/ns/prov#endedAtTime"
|
||||
],
|
||||
"slot_uri": "http://www.w3.org/ns/prov#endedAtTime",
|
||||
"owner": "Relationship",
|
||||
"domain_of": [
|
||||
"Relationship"
|
||||
],
|
||||
"range": "date",
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "registry__persons",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"slot_uri": "https://w3id.org/my_org/my_datamodelpersons",
|
||||
"multivalued": true,
|
||||
"alias": "persons",
|
||||
"owner": "Registry",
|
||||
"domain_of": [
|
||||
"Registry"
|
||||
],
|
||||
"range": "Person",
|
||||
"inlined": true,
|
||||
"inlined_as_list": true,
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "registry__organizations",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"slot_uri": "https://w3id.org/my_org/my_datamodelorganizations",
|
||||
"multivalued": true,
|
||||
"alias": "organizations",
|
||||
"owner": "Registry",
|
||||
"domain_of": [
|
||||
"Registry"
|
||||
],
|
||||
"range": "Organization",
|
||||
"inlined": true,
|
||||
"inlined_as_list": true,
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "hasAliases__aliases",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"exact_mappings": [
|
||||
"http://schema.org/alternateName"
|
||||
],
|
||||
"slot_uri": "https://w3id.org/my_org/my_datamodelaliases",
|
||||
"multivalued": true,
|
||||
"alias": "aliases",
|
||||
"owner": "HasAliases",
|
||||
"domain_of": [
|
||||
"HasAliases"
|
||||
],
|
||||
"range": "string",
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "related_to",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"slot_uri": "https://w3id.org/my_org/my_datamodelrelated_to",
|
||||
"range": "Person",
|
||||
"required": true,
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "Person_primary_email",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelprimary_email",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"mappings": [
|
||||
"http://schema.org/email"
|
||||
],
|
||||
"is_a": "primary_email",
|
||||
"domain": "Person",
|
||||
"slot_uri": "http://schema.org/email",
|
||||
"alias": "primary_email",
|
||||
"owner": "Person",
|
||||
"domain_of": [
|
||||
"Person"
|
||||
],
|
||||
"is_usage_slot": true,
|
||||
"usage_slot_name": "primary_email",
|
||||
"range": "string",
|
||||
"pattern": "^\\S+@[\\S+\\.]+\\S+",
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "FamilialRelationship_type",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodeltype",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"is_a": "type",
|
||||
"domain": "FamilialRelationship",
|
||||
"slot_uri": "https://w3id.org/my_org/my_datamodeltype",
|
||||
"alias": "type",
|
||||
"owner": "FamilialRelationship",
|
||||
"domain_of": [
|
||||
"FamilialRelationship"
|
||||
],
|
||||
"is_usage_slot": true,
|
||||
"usage_slot_name": "type",
|
||||
"range": "FamilialRelationshipType",
|
||||
"required": true,
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "FamilialRelationship_related_to",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"is_a": "related_to",
|
||||
"domain": "FamilialRelationship",
|
||||
"slot_uri": "https://w3id.org/my_org/my_datamodelrelated_to",
|
||||
"alias": "related to",
|
||||
"owner": "FamilialRelationship",
|
||||
"domain_of": [
|
||||
"FamilialRelationship"
|
||||
],
|
||||
"is_usage_slot": true,
|
||||
"usage_slot_name": "related to",
|
||||
"range": "Person",
|
||||
"required": true,
|
||||
"@type": "SlotDefinition"
|
||||
}
|
||||
],
|
||||
"classes": [
|
||||
{
|
||||
"name": "Registry",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelRegistry",
|
||||
"description": "Top level data container",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"slots": [
|
||||
"registry__persons",
|
||||
"registry__organizations"
|
||||
],
|
||||
"slot_usage": {},
|
||||
"attributes": [
|
||||
{
|
||||
"name": "persons",
|
||||
"multivalued": true,
|
||||
"range": "Person",
|
||||
"inlined": true,
|
||||
"inlined_as_list": true,
|
||||
"@type": "SlotDefinition"
|
||||
},
|
||||
{
|
||||
"name": "organizations",
|
||||
"multivalued": true,
|
||||
"range": "Organization",
|
||||
"inlined": true,
|
||||
"inlined_as_list": true,
|
||||
"@type": "SlotDefinition"
|
||||
}
|
||||
],
|
||||
"class_uri": "https://w3id.org/my_org/my_datamodelRegistry",
|
||||
"tree_root": true,
|
||||
"@type": "ClassDefinition"
|
||||
},
|
||||
{
|
||||
"name": "NamedThing",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelNamedThing",
|
||||
"description": "A generic grouping for any identifiable entity",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"close_mappings": [
|
||||
"schema:Thing"
|
||||
],
|
||||
"slots": [
|
||||
"id",
|
||||
"name",
|
||||
"description",
|
||||
"image"
|
||||
],
|
||||
"slot_usage": {},
|
||||
"class_uri": "https://w3id.org/my_org/my_datamodelNamedThing",
|
||||
"@type": "ClassDefinition"
|
||||
},
|
||||
{
|
||||
"name": "Person",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelPerson",
|
||||
"description": "A person (alive, dead, undead, or fictional).",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"mappings": [
|
||||
"schema:Person"
|
||||
],
|
||||
"is_a": "NamedThing",
|
||||
"mixins": [
|
||||
"HasAliases"
|
||||
],
|
||||
"slots": [
|
||||
"id",
|
||||
"name",
|
||||
"description",
|
||||
"image",
|
||||
"Person_primary_email",
|
||||
"birth_date",
|
||||
"age_in_years",
|
||||
"current_address",
|
||||
"has_familial_relationships",
|
||||
"hasAliases__aliases"
|
||||
],
|
||||
"slot_usage": {},
|
||||
"class_uri": "http://schema.org/Person",
|
||||
"@type": "ClassDefinition"
|
||||
},
|
||||
{
|
||||
"name": "HasAliases",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelHasAliases",
|
||||
"description": "A mixin applied to any class that can have aliases/alternateNames",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"mixin": true,
|
||||
"slots": [
|
||||
"hasAliases__aliases"
|
||||
],
|
||||
"slot_usage": {},
|
||||
"attributes": [
|
||||
{
|
||||
"name": "aliases",
|
||||
"exact_mappings": [
|
||||
"schema:alternateName"
|
||||
],
|
||||
"multivalued": true,
|
||||
"@type": "SlotDefinition"
|
||||
}
|
||||
],
|
||||
"class_uri": "https://w3id.org/my_org/my_datamodelHasAliases",
|
||||
"@type": "ClassDefinition"
|
||||
},
|
||||
{
|
||||
"name": "Organization",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelOrganization",
|
||||
"description": "An organization such as a company or university",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"mappings": [
|
||||
"schema:Organization"
|
||||
],
|
||||
"is_a": "NamedThing",
|
||||
"mixins": [
|
||||
"HasAliases"
|
||||
],
|
||||
"slots": [
|
||||
"id",
|
||||
"name",
|
||||
"description",
|
||||
"image",
|
||||
"mission_statement",
|
||||
"founding_date",
|
||||
"hasAliases__aliases"
|
||||
],
|
||||
"slot_usage": {},
|
||||
"class_uri": "http://schema.org/Organization",
|
||||
"@type": "ClassDefinition"
|
||||
},
|
||||
{
|
||||
"name": "Address",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelAddress",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"mappings": [
|
||||
"schema:PostalAddress"
|
||||
],
|
||||
"slots": [
|
||||
"street",
|
||||
"city",
|
||||
"postal_code"
|
||||
],
|
||||
"slot_usage": {},
|
||||
"class_uri": "http://schema.org/PostalAddress",
|
||||
"@type": "ClassDefinition"
|
||||
},
|
||||
{
|
||||
"name": "Relationship",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelRelationship",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"slots": [
|
||||
"started_at_time",
|
||||
"ended_at_time",
|
||||
"related_to",
|
||||
"type"
|
||||
],
|
||||
"slot_usage": {},
|
||||
"class_uri": "https://w3id.org/my_org/my_datamodelRelationship",
|
||||
"@type": "ClassDefinition"
|
||||
},
|
||||
{
|
||||
"name": "FamilialRelationship",
|
||||
"definition_uri": "https://w3id.org/my_org/my_datamodelFamilialRelationship",
|
||||
"from_schema": "https://w3id.org/my_org/my_datamodel",
|
||||
"is_a": "Relationship",
|
||||
"slots": [
|
||||
"started_at_time",
|
||||
"ended_at_time",
|
||||
"related_to",
|
||||
"FamilialRelationship_type",
|
||||
"FamilialRelationship_related_to"
|
||||
],
|
||||
"slot_usage": {},
|
||||
"class_uri": "https://w3id.org/my_org/my_datamodelFamilialRelationship",
|
||||
"@type": "ClassDefinition"
|
||||
}
|
||||
],
|
||||
"metamodel_version": "1.7.0",
|
||||
"source_file": "activitystreams.yaml",
|
||||
"source_file_date": "2022-09-06T10:00:58",
|
||||
"source_file_size": 3771,
|
||||
"generation_date": "2022-09-06T10:01:45",
|
||||
"@type": "SchemaDefinition",
|
||||
"@context": [
|
||||
"project/jsonld/activitystreams.context.jsonld",
|
||||
"https://w3id.org/linkml/types.context.jsonld",
|
||||
{
|
||||
"@base": "https://w3id.org/my_org/my_datamodel"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,243 +0,0 @@
|
|||
{
|
||||
"$defs": {
|
||||
"Address": {
|
||||
"additionalProperties": false,
|
||||
"description": "",
|
||||
"properties": {
|
||||
"city": {
|
||||
"type": "string"
|
||||
},
|
||||
"postal_code": {
|
||||
"type": "string"
|
||||
},
|
||||
"street": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [],
|
||||
"title": "Address",
|
||||
"type": "object"
|
||||
},
|
||||
"FamilialRelationship": {
|
||||
"additionalProperties": false,
|
||||
"description": "",
|
||||
"properties": {
|
||||
"ended_at_time": {
|
||||
"format": "date",
|
||||
"type": "string"
|
||||
},
|
||||
"related_to": {
|
||||
"type": "string"
|
||||
},
|
||||
"started_at_time": {
|
||||
"format": "date",
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"$ref": "#/$defs/FamilialRelationshipType"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type",
|
||||
"related_to"
|
||||
],
|
||||
"title": "FamilialRelationship",
|
||||
"type": "object"
|
||||
},
|
||||
"FamilialRelationshipType": {
|
||||
"description": "",
|
||||
"enum": [
|
||||
"SIBLING_OF",
|
||||
"PARENT_OF",
|
||||
"CHILD_OF"
|
||||
],
|
||||
"title": "FamilialRelationshipType",
|
||||
"type": "string"
|
||||
},
|
||||
"NamedThing": {
|
||||
"additionalProperties": false,
|
||||
"description": "A generic grouping for any identifiable entity",
|
||||
"properties": {
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"image": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id"
|
||||
],
|
||||
"title": "NamedThing",
|
||||
"type": "object"
|
||||
},
|
||||
"Organization": {
|
||||
"additionalProperties": false,
|
||||
"description": "An organization such as a company or university",
|
||||
"properties": {
|
||||
"aliases": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"founding_date": {
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"image": {
|
||||
"type": "string"
|
||||
},
|
||||
"mission_statement": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id"
|
||||
],
|
||||
"title": "Organization",
|
||||
"type": "object"
|
||||
},
|
||||
"Person": {
|
||||
"additionalProperties": false,
|
||||
"description": "A person (alive, dead, undead, or fictional).",
|
||||
"properties": {
|
||||
"age_in_years": {
|
||||
"maximum": 999,
|
||||
"minimum": 0,
|
||||
"type": "integer"
|
||||
},
|
||||
"aliases": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"birth_date": {
|
||||
"type": "string"
|
||||
},
|
||||
"current_address": {
|
||||
"$ref": "#/$defs/Address",
|
||||
"description": "The address at which a person currently lives"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"has_familial_relationships": {
|
||||
"items": {
|
||||
"$ref": "#/$defs/FamilialRelationship"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"image": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"primary_email": {
|
||||
"pattern": "^\\S+@[\\S+\\.]+\\S+",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id"
|
||||
],
|
||||
"title": "Person",
|
||||
"type": "object"
|
||||
},
|
||||
"PersonStatus": {
|
||||
"description": "",
|
||||
"enum": [
|
||||
"ALIVE",
|
||||
"DEAD",
|
||||
"UNKNOWN"
|
||||
],
|
||||
"title": "PersonStatus",
|
||||
"type": "string"
|
||||
},
|
||||
"Registry": {
|
||||
"additionalProperties": false,
|
||||
"description": "Top level data container",
|
||||
"properties": {
|
||||
"organizations": {
|
||||
"items": {
|
||||
"$ref": "#/$defs/Organization"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"persons": {
|
||||
"items": {
|
||||
"$ref": "#/$defs/Person"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"required": [],
|
||||
"title": "Registry",
|
||||
"type": "object"
|
||||
},
|
||||
"Relationship": {
|
||||
"additionalProperties": false,
|
||||
"description": "",
|
||||
"properties": {
|
||||
"ended_at_time": {
|
||||
"format": "date",
|
||||
"type": "string"
|
||||
},
|
||||
"related_to": {
|
||||
"type": "string"
|
||||
},
|
||||
"started_at_time": {
|
||||
"format": "date",
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [],
|
||||
"title": "Relationship",
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"$id": "https://w3id.org/my_org/my_datamodel",
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"additionalProperties": true,
|
||||
"metamodel_version": "1.7.0",
|
||||
"properties": {
|
||||
"organizations": {
|
||||
"items": {
|
||||
"$ref": "#/$defs/Organization"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"persons": {
|
||||
"items": {
|
||||
"$ref": "#/$defs/Person"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"required": [],
|
||||
"title": "my_datamodel",
|
||||
"type": "object",
|
||||
"version": null
|
||||
}
|
|
@ -1,343 +0,0 @@
|
|||
@prefix IAO: <http://purl.obolibrary.org/obo/IAO_> .
|
||||
@prefix PATO: <http://purl.obolibrary.org/obo/PATO_> .
|
||||
@prefix dcterms: <http://purl.org/dc/terms/> .
|
||||
@prefix famrel: <http://example.org/famrel/> .
|
||||
@prefix linkml: <https://w3id.org/linkml/> .
|
||||
@prefix my_datamodel: <https://w3id.org/my_org/my_datamodel> .
|
||||
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
@prefix schema: <http://schema.org/> .
|
||||
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
|
||||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
||||
|
||||
linkml:SubsetDefinition a owl:Class ;
|
||||
rdfs:label "subset_definition" .
|
||||
|
||||
linkml:TypeDefinition a owl:Class ;
|
||||
rdfs:label "type_definition" .
|
||||
|
||||
linkml:topValue a owl:DatatypeProperty ;
|
||||
rdfs:label "value" .
|
||||
|
||||
my_datamodel: a owl:Ontology ;
|
||||
rdfs:label "my_datamodel" ;
|
||||
IAO:0000700 my_datamodel:Address,
|
||||
my_datamodel:HasAliases,
|
||||
my_datamodel:NamedThing,
|
||||
my_datamodel:Registry,
|
||||
my_datamodel:Relationship ;
|
||||
dcterms:license "https://creativecommons.org/publicdomain/zero/1.0/" ;
|
||||
dcterms:title "My Datamodel" ;
|
||||
rdfs:seeAlso "https://example.org/" ;
|
||||
linkml:generation_date "2022-09-06T10:01:46" ;
|
||||
linkml:metamodel_version "1.7.0" ;
|
||||
linkml:source_file "activitystreams.yaml" ;
|
||||
linkml:source_file_date "2022-09-06T10:00:58" ;
|
||||
linkml:source_file_size 3771 .
|
||||
|
||||
my_datamodel:employed_at a owl:ObjectProperty,
|
||||
linkml:SlotDefinition ;
|
||||
rdfs:label "employed_at" ;
|
||||
rdfs:range my_datamodel:Organization .
|
||||
|
||||
my_datamodel:is_current a owl:ObjectProperty,
|
||||
linkml:SlotDefinition ;
|
||||
rdfs:label "is_current" ;
|
||||
rdfs:range linkml:Boolean .
|
||||
|
||||
my_datamodel:Registry a owl:Class,
|
||||
linkml:ClassDefinition ;
|
||||
rdfs:label "Registry" ;
|
||||
rdfs:subClassOf [ a owl:Restriction ;
|
||||
owl:allValuesFrom my_datamodel:Person ;
|
||||
owl:onProperty my_datamodel:persons ],
|
||||
[ a owl:Restriction ;
|
||||
owl:allValuesFrom my_datamodel:Organization ;
|
||||
owl:onProperty my_datamodel:organizations ] ;
|
||||
skos:definition "Top level data container" .
|
||||
|
||||
my_datamodel:age_in_years a owl:ObjectProperty,
|
||||
linkml:SlotDefinition ;
|
||||
rdfs:label "age_in_years" ;
|
||||
rdfs:range linkml:Integer .
|
||||
|
||||
my_datamodel:city a owl:ObjectProperty,
|
||||
linkml:SlotDefinition ;
|
||||
rdfs:label "city" ;
|
||||
rdfs:range linkml:String .
|
||||
|
||||
my_datamodel:current_address a owl:ObjectProperty,
|
||||
linkml:SlotDefinition ;
|
||||
rdfs:label "current_address" ;
|
||||
rdfs:range my_datamodel:Address ;
|
||||
skos:definition "The address at which a person currently lives" .
|
||||
|
||||
my_datamodel:founding_date a owl:ObjectProperty,
|
||||
linkml:SlotDefinition ;
|
||||
rdfs:label "founding_date" ;
|
||||
rdfs:range linkml:String .
|
||||
|
||||
my_datamodel:has_familial_relationships a owl:ObjectProperty,
|
||||
linkml:SlotDefinition ;
|
||||
rdfs:label "has_familial_relationships" ;
|
||||
rdfs:range my_datamodel:FamilialRelationship .
|
||||
|
||||
my_datamodel:mission_statement a owl:ObjectProperty,
|
||||
linkml:SlotDefinition ;
|
||||
rdfs:label "mission_statement" ;
|
||||
rdfs:range linkml:String .
|
||||
|
||||
my_datamodel:organizations a owl:ObjectProperty,
|
||||
linkml:SlotDefinition ;
|
||||
rdfs:label "organizations" ;
|
||||
rdfs:range my_datamodel:Organization .
|
||||
|
||||
my_datamodel:persons a owl:ObjectProperty,
|
||||
linkml:SlotDefinition ;
|
||||
rdfs:label "persons" ;
|
||||
rdfs:range my_datamodel:Person .
|
||||
|
||||
my_datamodel:postal_code a owl:ObjectProperty,
|
||||
linkml:SlotDefinition ;
|
||||
rdfs:label "postal_code" ;
|
||||
rdfs:range linkml:String .
|
||||
|
||||
my_datamodel:street a owl:ObjectProperty,
|
||||
linkml:SlotDefinition ;
|
||||
rdfs:label "street" ;
|
||||
rdfs:range linkml:String .
|
||||
|
||||
famrel:02 a owl:Class,
|
||||
my_datamodel:FamilialRelationshipType ;
|
||||
rdfs:label "PARENT_OF" .
|
||||
|
||||
PATO:0001421 a owl:Class,
|
||||
my_datamodel:PersonStatus ;
|
||||
rdfs:label "ALIVE" .
|
||||
|
||||
PATO:0001422 a owl:Class,
|
||||
my_datamodel:PersonStatus ;
|
||||
rdfs:label "DEAD" .
|
||||
|
||||
schema:birthDate a owl:ObjectProperty,
|
||||
linkml:SlotDefinition ;
|
||||
rdfs:label "birth_date" ;
|
||||
rdfs:range linkml:String ;
|
||||
skos:exactMatch schema:birthDate .
|
||||
|
||||
schema:description a owl:ObjectProperty,
|
||||
linkml:SlotDefinition ;
|
||||
rdfs:label "description" ;
|
||||
rdfs:range linkml:String ;
|
||||
skos:exactMatch schema:description .
|
||||
|
||||
schema:email a owl:ObjectProperty,
|
||||
linkml:SlotDefinition ;
|
||||
rdfs:label "primary_email" ;
|
||||
rdfs:range linkml:String ;
|
||||
skos:exactMatch schema:email .
|
||||
|
||||
schema:identifier a owl:ObjectProperty,
|
||||
linkml:SlotDefinition ;
|
||||
rdfs:label "id" ;
|
||||
rdfs:range linkml:String ;
|
||||
skos:exactMatch schema:identifier .
|
||||
|
||||
schema:image a owl:ObjectProperty,
|
||||
linkml:SlotDefinition ;
|
||||
rdfs:label "image" ;
|
||||
rdfs:range linkml:String ;
|
||||
skos:exactMatch schema:image .
|
||||
|
||||
schema:name a owl:ObjectProperty,
|
||||
linkml:SlotDefinition ;
|
||||
rdfs:label "name" ;
|
||||
rdfs:range linkml:String ;
|
||||
skos:exactMatch schema:name .
|
||||
|
||||
<http://www.w3.org/ns/prov#endedAtTime> a owl:ObjectProperty,
|
||||
linkml:SlotDefinition ;
|
||||
rdfs:label "ended_at_time" ;
|
||||
rdfs:range linkml:Date ;
|
||||
skos:exactMatch <http://www.w3.org/ns/prov#endedAtTime> .
|
||||
|
||||
<http://www.w3.org/ns/prov#startedAtTime> a owl:ObjectProperty,
|
||||
linkml:SlotDefinition ;
|
||||
rdfs:label "started_at_time" ;
|
||||
rdfs:range linkml:Date ;
|
||||
skos:exactMatch <http://www.w3.org/ns/prov#startedAtTime> .
|
||||
|
||||
my_datamodel:FamilialRelationship a owl:Class,
|
||||
linkml:ClassDefinition ;
|
||||
rdfs:label "FamilialRelationship" ;
|
||||
rdfs:subClassOf [ a owl:Restriction ;
|
||||
owl:onClass my_datamodel:FamilialRelationshipType ;
|
||||
owl:onProperty my_datamodel:type ;
|
||||
owl:qualifiedCardinality 1 ],
|
||||
[ a owl:Restriction ;
|
||||
owl:onClass my_datamodel:Person ;
|
||||
owl:onProperty my_datamodel:related_to ;
|
||||
owl:qualifiedCardinality 1 ],
|
||||
my_datamodel:Relationship .
|
||||
|
||||
<https://w3id.org/my_org/my_datamodelPersonStatus#UNKNOWN> a owl:Class,
|
||||
my_datamodel:PersonStatus ;
|
||||
rdfs:label "UNKNOWN" .
|
||||
|
||||
my_datamodel:Relationship a owl:Class,
|
||||
linkml:ClassDefinition ;
|
||||
rdfs:label "Relationship" ;
|
||||
rdfs:subClassOf [ a owl:Restriction ;
|
||||
owl:maxQualifiedCardinality 1 ;
|
||||
owl:onClass linkml:String ;
|
||||
owl:onProperty my_datamodel:related_to ],
|
||||
[ a owl:Restriction ;
|
||||
owl:maxQualifiedCardinality 1 ;
|
||||
owl:onClass linkml:String ;
|
||||
owl:onProperty my_datamodel:type ],
|
||||
[ a owl:Restriction ;
|
||||
owl:maxQualifiedCardinality 1 ;
|
||||
owl:onClass linkml:Date ;
|
||||
owl:onProperty <http://www.w3.org/ns/prov#endedAtTime> ],
|
||||
[ a owl:Restriction ;
|
||||
owl:maxQualifiedCardinality 1 ;
|
||||
owl:onClass linkml:Date ;
|
||||
owl:onProperty <http://www.w3.org/ns/prov#startedAtTime> ] .
|
||||
|
||||
my_datamodel:related_to a owl:ObjectProperty,
|
||||
linkml:SlotDefinition .
|
||||
|
||||
my_datamodel:type a owl:ObjectProperty,
|
||||
linkml:SlotDefinition ;
|
||||
rdfs:label "type" ;
|
||||
rdfs:range linkml:String .
|
||||
|
||||
famrel:01 a owl:Class,
|
||||
my_datamodel:FamilialRelationshipType ;
|
||||
rdfs:label "CHILD_OF",
|
||||
"SIBLING_OF" .
|
||||
|
||||
my_datamodel:Address a owl:Class,
|
||||
linkml:ClassDefinition ;
|
||||
rdfs:label "Address" ;
|
||||
rdfs:subClassOf [ a owl:Restriction ;
|
||||
owl:maxQualifiedCardinality 1 ;
|
||||
owl:onClass linkml:String ;
|
||||
owl:onProperty my_datamodel:city ],
|
||||
[ a owl:Restriction ;
|
||||
owl:maxQualifiedCardinality 1 ;
|
||||
owl:onClass linkml:String ;
|
||||
owl:onProperty my_datamodel:street ],
|
||||
[ a owl:Restriction ;
|
||||
owl:maxQualifiedCardinality 1 ;
|
||||
owl:onClass linkml:String ;
|
||||
owl:onProperty my_datamodel:postal_code ] ;
|
||||
skos:exactMatch schema:PostalAddress .
|
||||
|
||||
my_datamodel:FamilialRelationshipType a owl:Class,
|
||||
linkml:EnumDefinition ;
|
||||
rdfs:label "FamilialRelationshipType" ;
|
||||
owl:unionOf ( famrel:01 famrel:02 famrel:01 ) ;
|
||||
linkml:permissible_values famrel:01,
|
||||
famrel:02 .
|
||||
|
||||
my_datamodel:HasAliases a owl:Class,
|
||||
linkml:ClassDefinition ;
|
||||
rdfs:label "HasAliases" ;
|
||||
rdfs:subClassOf [ a owl:Restriction ;
|
||||
owl:allValuesFrom linkml:String ;
|
||||
owl:onProperty my_datamodel:aliases ],
|
||||
linkml:mixin ;
|
||||
skos:definition "A mixin applied to any class that can have aliases/alternateNames" .
|
||||
|
||||
my_datamodel:NamedThing a owl:Class,
|
||||
linkml:ClassDefinition ;
|
||||
rdfs:label "NamedThing" ;
|
||||
rdfs:subClassOf [ a owl:Restriction ;
|
||||
owl:maxQualifiedCardinality 1 ;
|
||||
owl:onClass linkml:String ;
|
||||
owl:onProperty schema:description ],
|
||||
[ a owl:Restriction ;
|
||||
owl:maxQualifiedCardinality 1 ;
|
||||
owl:onClass linkml:String ;
|
||||
owl:onProperty schema:name ],
|
||||
[ a owl:Restriction ;
|
||||
owl:maxQualifiedCardinality 1 ;
|
||||
owl:onClass linkml:String ;
|
||||
owl:onProperty schema:image ],
|
||||
[ a owl:Restriction ;
|
||||
owl:onClass linkml:String ;
|
||||
owl:onProperty schema:identifier ;
|
||||
owl:qualifiedCardinality 1 ] ;
|
||||
skos:closeMatch schema:Thing ;
|
||||
skos:definition "A generic grouping for any identifiable entity" .
|
||||
|
||||
my_datamodel:Organization a owl:Class,
|
||||
linkml:ClassDefinition ;
|
||||
rdfs:label "Organization" ;
|
||||
rdfs:subClassOf [ a owl:Restriction ;
|
||||
owl:maxQualifiedCardinality 1 ;
|
||||
owl:onClass linkml:String ;
|
||||
owl:onProperty my_datamodel:mission_statement ],
|
||||
[ a owl:Restriction ;
|
||||
owl:maxQualifiedCardinality 1 ;
|
||||
owl:onClass linkml:String ;
|
||||
owl:onProperty my_datamodel:founding_date ],
|
||||
[ a owl:Restriction ;
|
||||
owl:allValuesFrom linkml:String ;
|
||||
owl:onProperty my_datamodel:aliases ],
|
||||
my_datamodel:HasAliases,
|
||||
my_datamodel:NamedThing ;
|
||||
skos:definition "An organization such as a company or university" ;
|
||||
skos:exactMatch schema:Organization .
|
||||
|
||||
my_datamodel:Person a owl:Class,
|
||||
linkml:ClassDefinition ;
|
||||
rdfs:label "Person" ;
|
||||
rdfs:subClassOf [ a owl:Restriction ;
|
||||
owl:allValuesFrom linkml:String ;
|
||||
owl:onProperty my_datamodel:aliases ],
|
||||
[ a owl:Restriction ;
|
||||
owl:allValuesFrom my_datamodel:FamilialRelationship ;
|
||||
owl:onProperty my_datamodel:has_familial_relationships ],
|
||||
[ a owl:Restriction ;
|
||||
owl:maxQualifiedCardinality 1 ;
|
||||
owl:onClass linkml:Integer ;
|
||||
owl:onProperty my_datamodel:age_in_years ],
|
||||
[ a owl:Restriction ;
|
||||
owl:maxQualifiedCardinality 1 ;
|
||||
owl:onClass my_datamodel:Address ;
|
||||
owl:onProperty my_datamodel:current_address ],
|
||||
[ a owl:Restriction ;
|
||||
owl:maxQualifiedCardinality 1 ;
|
||||
owl:onClass linkml:String ;
|
||||
owl:onProperty schema:birthDate ],
|
||||
[ a owl:Restriction ;
|
||||
owl:maxQualifiedCardinality 1 ;
|
||||
owl:onClass linkml:String ;
|
||||
owl:onProperty schema:email ],
|
||||
my_datamodel:HasAliases,
|
||||
my_datamodel:NamedThing ;
|
||||
skos:definition "A person (alive, dead, undead, or fictional)." ;
|
||||
skos:exactMatch schema:Person .
|
||||
|
||||
my_datamodel:PersonStatus a owl:Class,
|
||||
linkml:EnumDefinition ;
|
||||
rdfs:label "PersonStatus" ;
|
||||
owl:unionOf ( PATO:0001421 PATO:0001422 <https://w3id.org/my_org/my_datamodelPersonStatus#UNKNOWN> ) ;
|
||||
linkml:permissible_values PATO:0001421,
|
||||
PATO:0001422,
|
||||
<https://w3id.org/my_org/my_datamodelPersonStatus#UNKNOWN> .
|
||||
|
||||
my_datamodel:aliases a owl:ObjectProperty,
|
||||
linkml:SlotDefinition ;
|
||||
rdfs:label "aliases" ;
|
||||
rdfs:range linkml:String ;
|
||||
skos:exactMatch schema:alternateName .
|
||||
|
||||
linkml:ClassDefinition a owl:Class ;
|
||||
rdfs:label "class_definition" .
|
||||
|
||||
linkml:SlotDefinition a owl:Class ;
|
||||
rdfs:label "slot_definition" .
|
|
@ -1,19 +0,0 @@
|
|||
---
|
||||
{
|
||||
"PATO": "http://purl.obolibrary.org/obo/PATO_",
|
||||
"biolink": "https://w3id.org/biolink/",
|
||||
"famrel": "http://example.org/famrel/",
|
||||
"linkml": "https://w3id.org/linkml/",
|
||||
"my_datamodel": "https://w3id.org/my_org/my_datamodel",
|
||||
"prov": "http://www.w3.org/ns/prov#",
|
||||
"schema": "http://schema.org/",
|
||||
"Address": {
|
||||
"@id": "schema:PostalAddress"
|
||||
},
|
||||
"Organization": {
|
||||
"@id": "schema:Organization"
|
||||
},
|
||||
"Person": {
|
||||
"@id": "schema:Person"
|
||||
}
|
||||
}
|
|
@ -1,60 +0,0 @@
|
|||
message Address
|
||||
{
|
||||
string street = 0
|
||||
string city = 0
|
||||
string postalCode = 0
|
||||
}
|
||||
message FamilialRelationship
|
||||
{
|
||||
date startedAtTime = 0
|
||||
date endedAtTime = 0
|
||||
string relatedTo = 0
|
||||
familialRelationshipType type = 0
|
||||
person relatedTo = 0
|
||||
}
|
||||
// A generic grouping for any identifiable entity
|
||||
message NamedThing
|
||||
{
|
||||
string id = 0
|
||||
string name = 0
|
||||
string description = 0
|
||||
string image = 0
|
||||
}
|
||||
// An organization such as a company or university
|
||||
message Organization
|
||||
{
|
||||
string id = 0
|
||||
string name = 0
|
||||
string description = 0
|
||||
string image = 0
|
||||
string missionStatement = 0
|
||||
string foundingDate = 0
|
||||
repeated string aliases = 0
|
||||
}
|
||||
// A person (alive, dead, undead, or fictional).
|
||||
message Person
|
||||
{
|
||||
string id = 0
|
||||
string name = 0
|
||||
string description = 0
|
||||
string image = 0
|
||||
string primaryEmail = 0
|
||||
string birthDate = 0
|
||||
integer ageInYears = 0
|
||||
address currentAddress = 0
|
||||
repeated familialRelationship hasFamilialRelationships = 0
|
||||
repeated string aliases = 0
|
||||
}
|
||||
// Top level data container
|
||||
message Registry
|
||||
{
|
||||
repeated person persons = 0
|
||||
repeated organization organizations = 0
|
||||
}
|
||||
message Relationship
|
||||
{
|
||||
date startedAtTime = 0
|
||||
date endedAtTime = 0
|
||||
string relatedTo = 0
|
||||
string type = 0
|
||||
}
|
|
@ -1,164 +0,0 @@
|
|||
@prefix famrel: <http://example.org/famrel/> .
|
||||
@prefix my_datamodel: <https://w3id.org/my_org/my_datamodel> .
|
||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
@prefix schema: <http://schema.org/> .
|
||||
@prefix sh: <http://www.w3.org/ns/shacl#> .
|
||||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
||||
|
||||
my_datamodel:HasAliases a sh:NodeShape ;
|
||||
sh:closed true ;
|
||||
sh:description "A mixin applied to any class that can have aliases/alternateNames" ;
|
||||
sh:ignoredProperties ( rdf:type ) ;
|
||||
sh:property [ sh:order 0 ;
|
||||
sh:path my_datamodel:aliases ] ;
|
||||
sh:targetClass my_datamodel:HasAliases .
|
||||
|
||||
my_datamodel:NamedThing a sh:NodeShape ;
|
||||
sh:closed true ;
|
||||
sh:description "A generic grouping for any identifiable entity" ;
|
||||
sh:ignoredProperties ( rdf:type ) ;
|
||||
sh:property [ sh:maxCount 1 ;
|
||||
sh:order 0 ;
|
||||
sh:path schema:identifier ],
|
||||
[ sh:maxCount 1 ;
|
||||
sh:order 1 ;
|
||||
sh:path schema:name ],
|
||||
[ sh:maxCount 1 ;
|
||||
sh:order 3 ;
|
||||
sh:path schema:image ],
|
||||
[ sh:maxCount 1 ;
|
||||
sh:order 2 ;
|
||||
sh:path schema:description ] ;
|
||||
sh:targetClass my_datamodel:NamedThing .
|
||||
|
||||
my_datamodel:Registry a sh:NodeShape ;
|
||||
sh:closed true ;
|
||||
sh:description "Top level data container" ;
|
||||
sh:ignoredProperties ( rdf:type ) ;
|
||||
sh:property [ sh:class schema:Person ;
|
||||
sh:nodeKind sh:IRI ;
|
||||
sh:order 0 ;
|
||||
sh:path my_datamodel:persons ],
|
||||
[ sh:class schema:Organization ;
|
||||
sh:nodeKind sh:IRI ;
|
||||
sh:order 1 ;
|
||||
sh:path my_datamodel:organizations ] ;
|
||||
sh:targetClass my_datamodel:Registry .
|
||||
|
||||
my_datamodel:Relationship a sh:NodeShape ;
|
||||
sh:closed true ;
|
||||
sh:ignoredProperties ( rdf:type ) ;
|
||||
sh:property [ sh:maxCount 1 ;
|
||||
sh:order 0 ;
|
||||
sh:path <http://www.w3.org/ns/prov#startedAtTime> ],
|
||||
[ sh:maxCount 1 ;
|
||||
sh:order 3 ;
|
||||
sh:path my_datamodel:type ],
|
||||
[ sh:maxCount 1 ;
|
||||
sh:order 2 ;
|
||||
sh:path my_datamodel:related_to ],
|
||||
[ sh:maxCount 1 ;
|
||||
sh:order 1 ;
|
||||
sh:path <http://www.w3.org/ns/prov#endedAtTime> ] ;
|
||||
sh:targetClass my_datamodel:Relationship .
|
||||
|
||||
schema:Organization a sh:NodeShape ;
|
||||
sh:closed true ;
|
||||
sh:description "An organization such as a company or university" ;
|
||||
sh:ignoredProperties ( rdf:type ) ;
|
||||
sh:property [ sh:maxCount 1 ;
|
||||
sh:order 1 ;
|
||||
sh:path my_datamodel:founding_date ],
|
||||
[ sh:maxCount 1 ;
|
||||
sh:order 5 ;
|
||||
sh:path schema:description ],
|
||||
[ sh:order 2 ;
|
||||
sh:path my_datamodel:aliases ],
|
||||
[ sh:maxCount 1 ;
|
||||
sh:order 6 ;
|
||||
sh:path schema:image ],
|
||||
[ sh:maxCount 1 ;
|
||||
sh:order 0 ;
|
||||
sh:path my_datamodel:mission_statement ],
|
||||
[ sh:maxCount 1 ;
|
||||
sh:order 3 ;
|
||||
sh:path schema:identifier ],
|
||||
[ sh:maxCount 1 ;
|
||||
sh:order 4 ;
|
||||
sh:path schema:name ] ;
|
||||
sh:targetClass schema:Organization .
|
||||
|
||||
schema:Person a sh:NodeShape ;
|
||||
sh:closed true ;
|
||||
sh:description "A person (alive, dead, undead, or fictional)." ;
|
||||
sh:ignoredProperties ( rdf:type ) ;
|
||||
sh:property [ sh:maxCount 1 ;
|
||||
sh:order 6 ;
|
||||
sh:path schema:identifier ],
|
||||
[ sh:maxCount 1 ;
|
||||
sh:order 8 ;
|
||||
sh:path schema:description ],
|
||||
[ sh:maxCount 1 ;
|
||||
sh:order 9 ;
|
||||
sh:path schema:image ],
|
||||
[ sh:maxCount 1 ;
|
||||
sh:order 0 ;
|
||||
sh:path schema:email ;
|
||||
sh:pattern "^\\S+@[\\S+\\.]+\\S+" ],
|
||||
[ sh:maxCount 1 ;
|
||||
sh:maxInclusive 999 ;
|
||||
sh:minInclusive 0 ;
|
||||
sh:order 2 ;
|
||||
sh:path my_datamodel:age_in_years ],
|
||||
[ sh:class schema:PostalAddress ;
|
||||
sh:description "The address at which a person currently lives" ;
|
||||
sh:maxCount 1 ;
|
||||
sh:nodeKind sh:BlankNode ;
|
||||
sh:order 3 ;
|
||||
sh:path my_datamodel:current_address ],
|
||||
[ sh:class my_datamodel:FamilialRelationship ;
|
||||
sh:nodeKind sh:BlankNode ;
|
||||
sh:order 4 ;
|
||||
sh:path my_datamodel:has_familial_relationships ],
|
||||
[ sh:maxCount 1 ;
|
||||
sh:order 1 ;
|
||||
sh:path schema:birthDate ],
|
||||
[ sh:maxCount 1 ;
|
||||
sh:order 7 ;
|
||||
sh:path schema:name ],
|
||||
[ sh:order 5 ;
|
||||
sh:path my_datamodel:aliases ] ;
|
||||
sh:targetClass schema:Person .
|
||||
|
||||
schema:PostalAddress a sh:NodeShape ;
|
||||
sh:closed true ;
|
||||
sh:ignoredProperties ( rdf:type ) ;
|
||||
sh:property [ sh:maxCount 1 ;
|
||||
sh:order 1 ;
|
||||
sh:path my_datamodel:city ],
|
||||
[ sh:maxCount 1 ;
|
||||
sh:order 2 ;
|
||||
sh:path my_datamodel:postal_code ],
|
||||
[ sh:maxCount 1 ;
|
||||
sh:order 0 ;
|
||||
sh:path my_datamodel:street ] ;
|
||||
sh:targetClass schema:PostalAddress .
|
||||
|
||||
my_datamodel:FamilialRelationship a sh:NodeShape ;
|
||||
sh:closed true ;
|
||||
sh:ignoredProperties ( rdf:type ) ;
|
||||
sh:property [ sh:maxCount 1 ;
|
||||
sh:order 1 ;
|
||||
sh:path <http://www.w3.org/ns/prov#endedAtTime> ],
|
||||
[ sh:maxCount 1 ;
|
||||
sh:order 0 ;
|
||||
sh:path <http://www.w3.org/ns/prov#startedAtTime> ],
|
||||
[ sh:in ( famrel:01 famrel:02 famrel:01 ) ;
|
||||
sh:maxCount 1 ;
|
||||
sh:minCount 1 ;
|
||||
sh:order 3 ;
|
||||
sh:path my_datamodel:type ],
|
||||
[ sh:maxCount 1 ;
|
||||
sh:order 2 ;
|
||||
sh:path my_datamodel:related_to ] ;
|
||||
sh:targetClass my_datamodel:FamilialRelationship .
|
|
@ -1,124 +0,0 @@
|
|||
BASE <https://w3id.org/my_org/my_datamodel/>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
|
||||
PREFIX linkml: <https://w3id.org/linkml/>
|
||||
PREFIX schema: <http://schema.org/>
|
||||
PREFIX prov: <http://www.w3.org/ns/prov#>
|
||||
|
||||
|
||||
linkml:String xsd:string
|
||||
|
||||
linkml:Integer xsd:integer
|
||||
|
||||
linkml:Boolean xsd:boolean
|
||||
|
||||
linkml:Float xsd:float
|
||||
|
||||
linkml:Double xsd:double
|
||||
|
||||
linkml:Decimal xsd:decimal
|
||||
|
||||
linkml:Time xsd:dateTime
|
||||
|
||||
linkml:Date xsd:date
|
||||
|
||||
linkml:Datetime xsd:dateTime
|
||||
|
||||
linkml:DateOrDatetime linkml:DateOrDatetime
|
||||
|
||||
linkml:Uriorcurie IRI
|
||||
|
||||
linkml:Uri IRI
|
||||
|
||||
linkml:Ncname xsd:string
|
||||
|
||||
linkml:Objectidentifier IRI
|
||||
|
||||
linkml:Nodeidentifier NONLITERAL
|
||||
|
||||
<https://w3id.org/my_org/my_datamodelAddress> CLOSED {
|
||||
( $<https://w3id.org/my_org/my_datamodelAddress_tes> ( <https://w3id.org/my_org/my_datamodelstreet> @linkml:String ? ;
|
||||
<https://w3id.org/my_org/my_datamodelcity> @linkml:String ? ;
|
||||
<https://w3id.org/my_org/my_datamodelpostal_code> @linkml:String ?
|
||||
) ;
|
||||
rdf:type [ schema:PostalAddress ] ?
|
||||
)
|
||||
}
|
||||
|
||||
<https://w3id.org/my_org/my_datamodelFamilialRelationship> CLOSED {
|
||||
( $<https://w3id.org/my_org/my_datamodelFamilialRelationship_tes> ( &<https://w3id.org/my_org/my_datamodelRelationship_tes> ;
|
||||
rdf:type [ <https://w3id.org/my_org/my_datamodelRelationship> ] ? ;
|
||||
<https://w3id.org/my_org/my_datamodeltype> @<https://w3id.org/my_org/my_datamodelFamilialRelationshipType> ;
|
||||
<https://w3id.org/my_org/my_datamodelrelated_to> @<https://w3id.org/my_org/my_datamodelPerson>
|
||||
) ;
|
||||
rdf:type [ <https://w3id.org/my_org/my_datamodelFamilialRelationship> ] ?
|
||||
)
|
||||
}
|
||||
|
||||
<https://w3id.org/my_org/my_datamodelHasAliases> {
|
||||
( $<https://w3id.org/my_org/my_datamodelHasAliases_tes> <https://w3id.org/my_org/my_datamodelaliases> @linkml:String * ;
|
||||
rdf:type [ <https://w3id.org/my_org/my_datamodelHasAliases> ] ?
|
||||
)
|
||||
}
|
||||
|
||||
<https://w3id.org/my_org/my_datamodelNamedThing> (
|
||||
CLOSED {
|
||||
( $<https://w3id.org/my_org/my_datamodelNamedThing_tes> ( schema:name @linkml:String ? ;
|
||||
schema:description @linkml:String ? ;
|
||||
schema:image @linkml:String ?
|
||||
) ;
|
||||
rdf:type [ <https://w3id.org/my_org/my_datamodelNamedThing> ]
|
||||
)
|
||||
} OR @<https://w3id.org/my_org/my_datamodelOrganization> OR @<https://w3id.org/my_org/my_datamodelPerson>
|
||||
)
|
||||
|
||||
<https://w3id.org/my_org/my_datamodelOrganization> CLOSED {
|
||||
( $<https://w3id.org/my_org/my_datamodelOrganization_tes> ( &<https://w3id.org/my_org/my_datamodelNamedThing_tes> ;
|
||||
rdf:type [ <https://w3id.org/my_org/my_datamodelNamedThing> ] ? ;
|
||||
&<https://w3id.org/my_org/my_datamodelHasAliases_tes> ;
|
||||
rdf:type [ <https://w3id.org/my_org/my_datamodelHasAliases> ] ? ;
|
||||
<https://w3id.org/my_org/my_datamodelmission_statement> @linkml:String ? ;
|
||||
<https://w3id.org/my_org/my_datamodelfounding_date> @linkml:String ? ;
|
||||
<https://w3id.org/my_org/my_datamodelaliases> @linkml:String *
|
||||
) ;
|
||||
rdf:type [ schema:Organization ]
|
||||
)
|
||||
}
|
||||
|
||||
<https://w3id.org/my_org/my_datamodelPerson> CLOSED {
|
||||
( $<https://w3id.org/my_org/my_datamodelPerson_tes> ( &<https://w3id.org/my_org/my_datamodelNamedThing_tes> ;
|
||||
rdf:type [ <https://w3id.org/my_org/my_datamodelNamedThing> ] ? ;
|
||||
&<https://w3id.org/my_org/my_datamodelHasAliases_tes> ;
|
||||
rdf:type [ <https://w3id.org/my_org/my_datamodelHasAliases> ] ? ;
|
||||
schema:email @linkml:String ? ;
|
||||
schema:birthDate @linkml:String ? ;
|
||||
<https://w3id.org/my_org/my_datamodelage_in_years> @linkml:Integer ? ;
|
||||
<https://w3id.org/my_org/my_datamodelcurrent_address> @<https://w3id.org/my_org/my_datamodelAddress> ? ;
|
||||
<https://w3id.org/my_org/my_datamodelhas_familial_relationships>
|
||||
@<https://w3id.org/my_org/my_datamodelFamilialRelationship> * ;
|
||||
<https://w3id.org/my_org/my_datamodelaliases> @linkml:String *
|
||||
) ;
|
||||
rdf:type [ schema:Person ]
|
||||
)
|
||||
}
|
||||
|
||||
<https://w3id.org/my_org/my_datamodelRegistry> CLOSED {
|
||||
( $<https://w3id.org/my_org/my_datamodelRegistry_tes> ( <https://w3id.org/my_org/my_datamodelpersons>
|
||||
@<https://w3id.org/my_org/my_datamodelPerson> * ;
|
||||
<https://w3id.org/my_org/my_datamodelorganizations> @<https://w3id.org/my_org/my_datamodelOrganization> *
|
||||
) ;
|
||||
rdf:type [ <https://w3id.org/my_org/my_datamodelRegistry> ] ?
|
||||
)
|
||||
}
|
||||
|
||||
<https://w3id.org/my_org/my_datamodelRelationship> (
|
||||
CLOSED {
|
||||
( $<https://w3id.org/my_org/my_datamodelRelationship_tes> ( prov:startedAtTime @linkml:Date ? ;
|
||||
prov:endedAtTime @linkml:Date ? ;
|
||||
<https://w3id.org/my_org/my_datamodelrelated_to> @linkml:String ? ;
|
||||
<https://w3id.org/my_org/my_datamodeltype> @linkml:String ?
|
||||
) ;
|
||||
rdf:type [ <https://w3id.org/my_org/my_datamodelRelationship> ] ?
|
||||
)
|
||||
} OR @<https://w3id.org/my_org/my_datamodelFamilialRelationship>
|
||||
)
|
|
@ -1,75 +0,0 @@
|
|||
CREATE TABLE "Address" (
|
||||
street TEXT,
|
||||
city TEXT,
|
||||
postal_code TEXT,
|
||||
PRIMARY KEY (street, city, postal_code)
|
||||
);
|
||||
|
||||
CREATE TABLE "NamedThing" (
|
||||
id TEXT NOT NULL,
|
||||
name TEXT,
|
||||
description TEXT,
|
||||
image TEXT,
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
CREATE TABLE "Organization" (
|
||||
id TEXT NOT NULL,
|
||||
name TEXT,
|
||||
description TEXT,
|
||||
image TEXT,
|
||||
mission_statement TEXT,
|
||||
founding_date TEXT,
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
CREATE TABLE "Person" (
|
||||
id TEXT NOT NULL,
|
||||
name TEXT,
|
||||
description TEXT,
|
||||
image TEXT,
|
||||
primary_email TEXT,
|
||||
birth_date TEXT,
|
||||
age_in_years INTEGER,
|
||||
current_address TEXT,
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
CREATE TABLE "Registry" (
|
||||
persons TEXT,
|
||||
organizations TEXT,
|
||||
PRIMARY KEY (persons, organizations)
|
||||
);
|
||||
|
||||
CREATE TABLE "Relationship" (
|
||||
started_at_time DATE,
|
||||
ended_at_time DATE,
|
||||
related_to TEXT,
|
||||
type TEXT,
|
||||
PRIMARY KEY (started_at_time, ended_at_time, related_to, type)
|
||||
);
|
||||
|
||||
CREATE TABLE "FamilialRelationship" (
|
||||
started_at_time DATE,
|
||||
ended_at_time DATE,
|
||||
related_to TEXT NOT NULL,
|
||||
type VARCHAR(10) NOT NULL,
|
||||
"Person_id" TEXT,
|
||||
PRIMARY KEY (started_at_time, ended_at_time, related_to, type, "Person_id"),
|
||||
FOREIGN KEY(related_to) REFERENCES "Person" (id),
|
||||
FOREIGN KEY("Person_id") REFERENCES "Person" (id)
|
||||
);
|
||||
|
||||
CREATE TABLE "Organization_aliases" (
|
||||
backref_id TEXT,
|
||||
aliases TEXT,
|
||||
PRIMARY KEY (backref_id, aliases),
|
||||
FOREIGN KEY(backref_id) REFERENCES "Organization" (id)
|
||||
);
|
||||
|
||||
CREATE TABLE "Person_aliases" (
|
||||
backref_id TEXT,
|
||||
aliases TEXT,
|
||||
PRIMARY KEY (backref_id, aliases),
|
||||
FOREIGN KEY(backref_id) REFERENCES "Person" (id)
|
||||
);
|
Loading…
Reference in a new issue