PREFIX alspacdcs: <http://purl.org/alspac/alspac-data-catalogue-schema/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

<http://www.w3.org/ns/dcat#Dataset> a rdfs:Class ;
  rdfs:comment "This class is for describing and recording files that are released as bespoke data releases." , "Represents a version of a named_alspac_data_set. That is a specific set of data which internal people to alspac can use." , "Represents a freeze of a version of named_alspac_data_set. That is a specific set of data which can be applied to use by external colabs. It is normally a subset of files in a version of named alspac dataset, but sometimes file types will also change. For example .Rdata changed to .csv." , "Represents a named_alspac_data_set. That is a set of data that has been collected or produced to be named, reused and distributed." , "Represents a  part of named alspac data set, in a version or freeze or custom dataset. For example in an omics context the data collected for a single chr which would be made availble as a dcat distribution of this type of dataset which would be of a specific file." ;
  rdfs:subClassOf <http://schema.org/Thing> .

<http://schema.org/name> a rdf:Property ;
  rdfs:comment "A human-readable name for a thing" ;
  rdfs:range xsd:string .

alspacdcs:git_repo a rdf:Property ;
  rdfs:comment "The git repo for this object" ;
  rdfs:range xsd:string .

alspacdcs:dataset_size a rdf:Property ;
  rdfs:comment "The appoximate size in a version of a named Alspacdata set of custom data release" ;
  rdfs:range xsd:string .

alspacdcs:git_tag a rdf:Property ;
  rdfs:comment "The git tag of the repo that made this freeze." ;
  rdfs:range xsd:string .

<http://schema.org/description> a rdf:Property ;
  rdfs:comment "A human-readable description for a thing" ;
  rdfs:range xsd:string .

alspacdcs:has_containers a rdf:Property ;
  rdfs:comment "A list of dirs in this  named alspac dataset version or freeze or custom dataset" ;
  rdfs:range <http://www.semanticdesktop.org/ontologies/2007/03/22/nfo/v1.2/#Folder> .

alspacdcs:derived_from a rdf:Property ;
  rdfs:comment "List of NamedAlspacDatasets that were used at least in part to derive this Named or custom dataset." ;
  rdfs:range <http://www.w3.org/ns/dcat#Dataset> .

alspacdcs:authors a rdf:Property ;
  rdfs:comment "A list of orcids for the authors of the item" ;
  rdfs:range xsd:string .

alspacdcs:keywords a rdf:Property ;
  rdfs:comment "A list of keywords." ;
  rdfs:range xsd:string .

alspacdcs:date_of_release a rdf:Property ;
  rdfs:comment "The date this dataset was released to a colab." ;
  rdfs:range xsd:string .

alspacdcs:bnumber a rdf:Property ;
  rdfs:comment "An ALSPAC project code" ;
  rdfs:range xsd:string .

alspacdcs:has_parts a rdf:Property ;
  rdfs:comment "A list of parts of a named alspac dataset version or freeze or custom dataset" ;
  rdfs:range <http://www.w3.org/ns/dcat#Dataset> .

alspacdcs:has_scripts a rdf:Property ;
  rdfs:comment "A list of scripts that are included in a dataset version or freeze" ;
  rdfs:range alspacdcs:Script .

alspacdcs:all_individuals_to_exclude_md_5_sum a rdf:Property ;
  rdfs:comment "The md5sum of the all_individuals_to_exclude to make this freeze" ;
  rdfs:range xsd:string .

<http://schema.org/Thing> a rdfs:Class ;
  rdfs:comment "A generic grouping for any identifiable entity" .

<http://www.semanticdesktop.org/ontologies/2007/03/22/nfo/v1.2/#Folder> a rdfs:Class ;
  rdfs:comment "A dir/folder in a freeze, or version" ;
  rdfs:subClassOf <http://schema.org/Thing> .

alspacdcs:belongs_to_container a rdf:Property ;
  rdfs:comment "What container does this belong to." ;
  rdfs:range <http://www.semanticdesktop.org/ontologies/2007/03/22/nfo/v1.2/#Folder> .

alspacdcs:UgKeyValue a rdfs:Class ;
  rdfs:comment "A user guide entry." ;
  rdfs:subClassOf <http://schema.org/Thing> .

alspacdcs:ug_value a rdf:Property ;
  rdfs:comment "A description or link to how to do something" ;
  rdfs:range xsd:string .

alspacdcs:ug_key a rdf:Property ;
  rdfs:comment "A key is something you might want to do for example run a gwas" ;
  rdfs:range xsd:string .

alspacdcs:Paper a rdfs:Class ;
  rdfs:comment "a scientific paper" ;
  rdfs:subClassOf <http://schema.org/Thing> .

alspacdcs:ug_parts a rdf:Property ;
  rdfs:comment "A list of key value pairs, where a key is something you might want to do and value is a description and/or link to how you might want to do it." ;
  rdfs:range alspacdcs:UgKeyValue .

alspacdcs:qc_description a rdf:Property ;
  rdfs:comment "Some free text to describe any quality control that has been performed." ;
  rdfs:range xsd:string .

alspacdcs:version_of a rdf:Property ;
  rdfs:comment "What named Alspac dataset is this a version of" ;
  rdfs:range <http://www.w3.org/ns/dcat#Dataset> .

alspacdcs:has_next_version a rdf:Property ;
  rdfs:comment "The next version of this named alspac dataset" ;
  rdfs:range xsd:anyURI .

alspacdcs:known_issues a rdf:Property ;
  rdfs:comment "A list of known issues inline" ;
  rdfs:range alspacdcs:KnownIssue .

alspacdcs:is_current_version a rdf:Property ;
  rdfs:comment "Is this the current version of a named alspac dataset" ;
  rdfs:range xsd:string .

alspacdcs:has_previous_version a rdf:Property ;
  rdfs:comment "The previous version of this named alspac dataset" ;
  rdfs:range xsd:anyURI .

alspacdcs:qc_parts a rdf:Property ;
  rdfs:comment "A list of key value pairs for for information about quality control of this dataset. A key might be something that has been done or a description of a paramater. i.e 'snp_hwe_filter' and the value might be '5e-07'." ;
  rdfs:range alspacdcs:QcKeyValue .

alspacdcs:has_freezes a rdf:Property ;
  rdfs:comment "A list of freezes for this version of the data" ;
  rdfs:range <http://www.w3.org/ns/dcat#Dataset> .

alspacdcs:KnownIssue a rdfs:Class ;
  rdfs:comment "Known issues for a dataset should have a description, when they are logged and by who" ;
  rdfs:subClassOf <http://schema.org/Thing> .

alspacdcs:issue_description a rdf:Property ;
  rdfs:comment "What the issue is." ;
  rdfs:range xsd:string .

alspacdcs:logged_by a rdf:Property ;
  rdfs:comment "The person who logged this issue." ;
  rdfs:range xsd:string .

alspacdcs:logged_date a rdf:Property ;
  rdfs:comment "The date that this issue was logged." ;
  rdfs:range xsd:string .

alspacdcs:next_freeze a rdf:Property ;
  rdfs:comment "What is the next freeze ?" ;
  rdfs:range <http://www.w3.org/ns/dcat#Dataset> .

alspacdcs:linker_file_md_5_sum a rdf:Property ;
  rdfs:comment "What is the md5sum of the dataset linker file used to make this freeze" ;
  rdfs:range xsd:string .

alspacdcs:woc_file_md_5_sum a rdf:Property ;
  rdfs:comment "The md5sum of the woc file used to make this freeze" ;
  rdfs:range xsd:string .

alspacdcs:freeze_of_alspac_dataset_version a rdf:Property ;
  rdfs:comment "What version was this freeze built from?" ;
  rdfs:range <http://www.w3.org/ns/dcat#Dataset> .

alspacdcs:previous_freeze a rdf:Property ;
  rdfs:comment "What was the previous freeze?" ;
  rdfs:range <http://www.w3.org/ns/dcat#Dataset> .

alspacdcs:freeze_size a rdf:Property ;
  rdfs:comment "The approximate size of all the data in the freeze." ;
  rdfs:range xsd:string .

alspacdcs:freeze_of_named_alspac_dataset a rdf:Property ;
  rdfs:comment "What named alspac dataset is this freeze built from?" ;
  rdfs:range <http://www.w3.org/ns/dcat#Dataset> .

<http://schema.org/email> a rdf:Property ;
  rdfs:comment "The main email address to contact" ;
  rdfs:range xsd:string .

alspacdcs:is_current_freeze a rdf:Property ;
  rdfs:comment "Is this current freeze?" ;
  rdfs:range xsd:boolean .

alspacdcs:freeze_date a rdf:Property ;
  rdfs:comment "When was this freeze made?" ;
  rdfs:range xsd:date .

alspacdcs:freeze_number a rdf:Property ;
  rdfs:comment "What number freeze is this?" ;
  rdfs:range xsd:string .

alspacdcs:QcKeyValue a rdfs:Class ;
  rdfs:comment "A qc part with a key and a value." ;
  rdfs:subClassOf <http://schema.org/Thing> .

alspacdcs:qc_value a rdf:Property ;
  rdfs:comment "A value for a key" ;
  rdfs:range xsd:string .

alspacdcs:qc_key a rdf:Property ;
  rdfs:comment "A key might be something that has been done or a description of a paramater. i.e 'snp_hwe_filter'" ;
  rdfs:range xsd:string .

<http://www.w3.org/ns/dcat#Catalog> a rdfs:Class ;
  rdfs:comment "Represents an alspac data catalogue. That is a set of named alspac data sets." ;
  rdfs:subClassOf <http://schema.org/Thing> .

alspacdcs:primary_investigator_orcids a rdf:Property ;
  rdfs:comment "The orcid ids of the pis" ;
  rdfs:range <http://xmlns.com/foaf/0.1/Person> .

alspacdcs:see_also a rdf:Property ;
  rdfs:comment "Links to useful info" ;
  rdfs:range xsd:anyURI .

alspacdcs:named_alspac_datasets a rdf:Property ;
  rdfs:comment "A list of named alspac data sets curies ids" ;
  rdfs:range <http://www.w3.org/ns/dcat#Dataset> .

<http://www.w3.org/ns/dcat#hasCurrentVersion> a rdf:Property ;
  rdfs:comment "The current version of this named alspac dataset" ;
  rdfs:range <http://www.w3.org/ns/dcat#Dataset> .

alspacdcs:versions a rdf:Property ;
  rdfs:comment "A list of versions of a named dataset" ;
  rdfs:range <http://www.w3.org/ns/dcat#Dataset> .

<http://www.w3.org/ns/dcat#landingPage> a rdf:Property ;
  rdfs:comment "A Web page that can be navigated to in a Web browser to gain access to the catalog, a dataset, its distributions and/or additional information." ;
  rdfs:range xsd:string .

alspacdcs:in_catalog a rdf:Property ;
  rdfs:comment "What catalog is this dataset a part of" ;
  rdfs:range <http://www.w3.org/ns/dcat#Catalog> .

alspacdcs:publications_dois a rdf:Property ;
  rdfs:comment "A list of publications dois that use or refer to this data set" ;
  rdfs:range alspacdcs:Paper .

alspacdcs:main_publication_doi a rdf:Property ;
  rdfs:comment "A doi ref to the main publication describing this dataset." ;
  rdfs:range alspacdcs:Paper .

alspacdcs:documentation_authors_orcids a rdf:Property ;
  rdfs:comment "a list of the orcid ids of the documentation authors" ;
  rdfs:range <http://xmlns.com/foaf/0.1/Person> .

alspacdcs:data_distributions a rdf:Property ;
  rdfs:comment "A list of data distributions for this abstract dataset" ;
  rdfs:range <http://www.w3.org/ns/dcat#Distribution> .

alspacdcs:Script a rdfs:Class ;
  rdfs:comment "A description and attributes of a script included in a version or freeze" ;
  rdfs:subClassOf <http://schema.org/Thing> .

<http://www.w3.org/ns/dcat#byteSize> a rdf:Property ;
  rdfs:comment "The size of the file in k, m,g or t." ;
  rdfs:range xsd:string .

alspacdcs:md_5_sum a rdf:Property ;
  rdfs:comment "What is the md5sum of the file in this distribution?" ;
  rdfs:range xsd:string .

<http://www.w3.org/ns/dcat#mediaType> a rdf:Property ;
  rdfs:comment "what is the file type?" ;
  rdfs:range xsd:string .

<http://www.w3.org/ns/dcat#Distribution> a rdfs:Class ;
  rdfs:comment "A dataset distribution has a location, file type and file size." ;
  rdfs:subClassOf <http://schema.org/Thing> .

alspacdcs:number_of_gene_expression_probe_values a rdf:Property ;
  rdfs:comment "This slot is used for gene expression data distributions" ;
  rdfs:range xsd:integer .

alspacdcs:number_of_cnv_variants a rdf:Property ;
  rdfs:comment "The number of cnv vaiants" ;
  rdfs:range xsd:integer .

alspacdcs:number_of_variants a rdf:Property ;
  rdfs:comment "The number of genetic variants (i.e snps, indels etc)" ;
  rdfs:range xsd:integer .

alspacdcs:required_files a rdf:Property ;
  rdfs:comment "If a file should be used with another file list them. For example the three plink files (bim, bed, fam) work together." ;
  rdfs:range <http://www.w3.org/ns/dcat#Distribution> .

alspacdcs:number_of_cpgs a rdf:Property ;
  rdfs:comment "The number of CPG sites." ;
  rdfs:range xsd:integer .

alspacdcs:number_of_participants a rdf:Property ;
  rdfs:comment "The number of alspac participants in this dataset" ;
  rdfs:range xsd:integer .

<http://xmlns.com/foaf/0.1/Person> a rdfs:Class ;
  rdfs:comment "A person" ;
  rdfs:subClassOf <http://schema.org/Thing> .
