Skip to content

Instantly share code, notes, and snippets.

@shawngraham
Last active September 20, 2023 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shawngraham/ae915e4429db02aabb4db4f5b7948808 to your computer and use it in GitHub Desktop.
Save shawngraham/ae915e4429db02aabb4db4f5b7948808 to your computer and use it in GitHub Desktop.
I asked gpt4 to improve the antiquities.ttl ontology. This was its suggestion: 1. Created an `ex:POSSESSOR` class which is the subclass of `ex:PERSON`, `ex:GALLERY`, and `ex:MUSEUM` and set that as the domain for `ex:has_possession_of`. 2. Merged `ex:buys` and `ex:obtains_from` into `ex:acquires` and `ex:works_with` and `ex:spouse_of` into `ex:h…
@prefix ex: <#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
# Classes
ex:ENTITY rdf:type rdfs:Class .
ex:OWNER rdf:type rdfs:Class ;
rdfs:subClassOf ex:ENTITY .
ex:PROVENANCE rdf:type rdfs:Class .
ex:OWNER_HISTORY rdf:type rdfs:Class .
ex:AUTHENTICITY rdf:type rdfs:Class .
ex:LEGAL_STATUS rdf:type rdfs:Class .
ex:Location rdf:type rdfs:Class .
ex:AUCTIONHOUSE rdf:type rdfs:Class ;
rdfs:subClassOf ex:ENTITY .
ex:ARTIFACT rdf:type rdfs:Class .
ex:PERSON rdf:type rdfs:Class ;
rdfs:subClassOf ex:ENTITY .
ex:MUSEUM rdf:type rdfs:Class ;
rdfs:subClassOf ex:ENTITY .
ex:ORGANIZATION rdf:type rdfs:Class ;
rdfs:subClassOf ex:ENTITY .
ex:GOVERNMENT_AGENCY rdf:type rdfs:Class ;
rdfs:subClassOf ex:ENTITY .
ex:GALLERY rdf:type rdfs:Class;
rdfs:subClassOf ex:ENTITY .
ex:ART_WORK rdf:type rdfs:Class .
ex:AUTHORITY rdf:type rdfs:Class .
ex:EXPERTISE_INSTITUTION rdf:type rdfs:Class ;
rdfs:subClassOf ex:ENTITY .
ex:POSSESSOR rdf:type rdfs:Class ;
rdfs:subClassOf ex:ENTITY .
ex:City rdf:type rdfs:Class ;
rdfs:subClassOf ex:Location .
ex:Country rdf:type rdfs:Class ;
rdfs:subClassOf ex:Location .
# Object Properties
ex:was_owner rdf:type rdf:Property ;
rdf:type owl:ObjectProperty ;
rdfs:domain ex:OWNER_HISTORY ;
rdfs:range ex:OWNER .
ex:has_provenance rdf:type rdf:Property ;
rdf:type owl:ObjectProperty ;
rdfs:domain ex:ARTIFACT ;
rdfs:range ex:PROVENANCE .
ex:has_owner_history rdf:type rdf:Property ;
rdf:type owl:ObjectProperty ;
rdfs:domain ex:PROVENANCE ;
rdfs:range ex:OWNER_HISTORY .
ex:has_authenticity_info rdf:type rdf:Property ;
rdf:type owl:ObjectProperty ;
rdfs:domain ex:PROVENANCE ;
rdfs:range ex:AUTHENTICITY .
ex:has_legal_status rdf:type rdf:Property ;
rdf:type owl:ObjectProperty ;
rdfs:domain ex:PROVENANCE ;
rdfs:range ex:LEGAL_STATUS .
ex:is_in rdf:type rdf:Property ;
rdf:type owl:ObjectProperty ;
rdfs:domain ex:City ;
rdfs:range ex:Country .
ex:associated_with rdf:type rdf:Property ;
rdf:type owl:ObjectProperty ;
rdfs:domain ex:PERSON ;
rdfs:range ex:Location .
ex:authenticated_by rdf:type rdf:Property ;
rdfs:domain ex:ARTIFACT ;
rdfs:range ex:PERSON, ex:GALLERY, ex:MUSEUM .
ex:auctions rdf:type rdf:Property ;
rdfs:domain ex:AUCTIONHOUSE, ex:GALLERY, ex:MUSEUM ;
rdfs:range ex:ARTIFACT .
ex:sells_to rdf:type rdf:Property ;
rdfs:domain ex:AUCTIONHOUSE, ex:GALLERY, ex:MUSEUM ;
rdfs:range ex:PERSON .
ex:has_possession_of rdf:type rdf:Property ;
rdfs:domain ex:POSSESSOR, ex:GALLERY, ex:MUSEUM ;
rdfs:range ex:ARTIFACT .
ex:acquires rdf:type rdf:Property ;
rdfs:domain ex:PERSON, ex:GALLERY, ex:MUSEUM ;
rdfs:range ex:ARTIFACT .
ex:donates_to rdf:type rdf:Property ;
rdfs:domain ex:PERSON, ex:GALLERY, ex:AUCTIONHOUSE ;
rdfs:range ex:MUSEUM .
ex:has_relationship_with rdf:type rdf:Property ;
rdfs:domain ex:PERSON ;
rdfs:range ex:PERSON .
ex:employed_by rdf:type rdf:Property ;
rdfs:domain ex:PERSON ;
rdfs:range ex:ORGANIZATION .
ex:controls rdf:type rdf:Property ;
rdfs:domain ex:PERSON ;
rdfs:range ex:ORGANIZATION .
ex:buys_at rdf:type rdf:Property ;
rdfs:domain ex:PERSON ;
rdfs:range ex:AUCTIONHOUSE .
ex:is_instance_of rdf:type rdf:Property ;
rdfs:domain ex:ART_WORK ;
rdfs:range ex:ARTIFACT .
ex:repatriates rdf:type rdf:Property ;
rdfs:domain ex:GOVERNMENT_AGENCY ;
rdfs:range ex:ARTIFACT .
# Data Properties
ex:origin rdf:type rdf:Property ;
rdf:type owl:DatatypeProperty ;
rdfs:domain ex:PROVENANCE ;
rdfs:range xsd:string .
ex:previous_owners rdf:type rdf:Property ;
rdf:type owl:DatatypeProperty ;
rdfs:domain ex:OWNER_HISTORY ;
rdfs:range xsd:string .
ex:authenticity rdf:type rdf:Property ;
rdf:type owl:DatatypeProperty ;
rdfs:domain ex:AUTHENTICITY ;
rdfs:range xsd:string .
ex:legal_status rdf:type rdf:Property ;
rdf:type owl:DatatypeProperty ;
rdfs:domain ex:LEGAL_STATUS ;
rdfs:range xsd:string .
ex:city rdf:type rdf:Property ;
rdf:type owl:DatatypeProperty ;
rdfs:domain ex:ENTITY ;
rdfs:range xsd:string .
ex:country rdf:type rdf:Property ;
rdf:type owl:DatatypeProperty ;
rdfs:domain ex:ENTITY ;
rdfs:range xsd:string .
ex:name rdf:type rdf:Property ;
rdfs:domain ex:ENTITY ;
rdfs:range xsd:string .
ex:from_culture rdf:type rdf:Property ;
rdfs:domain ex:ARTIFACT ;
rdfs:range xsd:string .
ex:dates_from rdf:type rdf:Property ;
rdfs:domain ex:ARTIFACT, ex:ART_WORK ;
rdfs:range xsd:string .
# Authorities and Enforcement
ex:enforced_by rdf:type rdf:Property ;
rdfs:domain ex:ARTIFACT ;
rdfs:range ex:AUTHORITY .
ex:seized_by rdf:type rdf:Property ;
rdfs:domain ex:ARTIFACT ;
rdfs:range ex:AUTHORITY .
# Authentication and Expertise
ex:authenticated_by rdf:type rdf:Property ;
rdfs:domain ex:ARTIFACT ;
rdfs:range ex:PERSON .
# Cultural Heritage and Repatriation
ex:cultural_heritage rdf:type rdf:Property ;
rdfs:domain ex:ARTIFACT ;
rdfs:range xsd:string .
ex:repatriated_to_c rdf:type rdf:Property ;
rdfs:domain ex:ARTIFACT ;
rdfs:range ex:Country .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment