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://purl.org/nidash/nidm#DerivativeObject> a rdfs:Class ;
  rdfs:comment "An entity produced by a Derivative processing activity.  Contains derived measurements.  Also a prov:Entity." .

<http://www.w3.org/ns/prov#wasGeneratedBy> a rdf:Property ;
  rdfs:comment "The Derivative activity that produced this object" , "The Acquisition that produced this object" ;
  rdfs:range <http://purl.org/nidash/nidm#Derivative> , <http://purl.org/nidash/nidm#Acquisition> .

<http://www.w3.org/ns/prov#Collection> a rdfs:Class ;
  rdfs:comment "A collection of entities (e.g. a BIDS dataset, a FreeSurfer stats collection).  Also a prov:Entity." .

<http://bids.neuroimaging.io/BIDSVersion> a rdf:Property ;
  rdfs:comment "BIDS standard version" ;
  rdfs:range xsd:string .

<http://purl.org/dc/terms/license> a rdf:Property ;
  rdfs:comment "Data license" ;
  rdfs:range xsd:string .

<http://www.w3.org/ns/prov#hadMember> a rdf:Property ;
  rdfs:comment "Member entities of this collection" ;
  rdfs:range xsd:anyURI .

<http://purl.org/nidash/nidm#Session> a rdfs:Class ;
  rdfs:comment "A study session, typically one per participant visit.  Contains acquisition activities.  A Session is also a prov:Activity." .

<http://purl.org/dc/terms/isPartOf> a rdf:Property ;
  rdfs:comment "The Project this Session belongs to" , "The Session this Acquisition belongs to" ;
  rdfs:range <http://purl.org/nidash/nidm#Project> , <http://purl.org/nidash/nidm#Session> .

<http://bids.neuroimaging.io/session_number> a rdf:Property ;
  rdfs:comment "Session number within the study" ;
  rdfs:range xsd:string .

<https://purl.org/nidash/nidm/schema/acquisitions> a rdf:Property ;
  rdfs:comment "Acquisition activities in this session" ;
  rdfs:range <http://purl.org/nidash/nidm#Acquisition> .

<http://www.w3.org/ns/prov#Activity> a rdfs:Class ;
  rdfs:comment "An export activity recording which tool created or modified the NIDM file.  Part of the export provenance pattern." .

<http://www.w3.org/ns/prov#used> a rdf:Property ;
  rdfs:comment "Input entity (Collection or Project) that was used" , "Source entity consumed by this derivative activity" ;
  rdfs:range xsd:anyURI .

rdfs:label a rdf:Property ;
  rdfs:comment "Human-readable label (e.g. 'Create NIDM RDF from BIDS dataset', 'Add CSV data to NIDM file')" , "Human-readable variable label" , "Display name (e.g. 'PyNIDM bidsmri2nidm.py')" ;
  rdfs:range xsd:string .

<http://www.w3.org/ns/prov#startedAtTime> a rdf:Property ;
  rdfs:range xsd:dateTime .

<http://purl.org/nidash/nidm#outputFormat> a rdf:Property ;
  rdfs:comment "Output format (e.g. 'turtle')" ;
  rdfs:range xsd:string .

<http://www.w3.org/ns/prov#wasAssociatedWith> a rdf:Property ;
  rdfs:range <http://www.w3.org/ns/prov#SoftwareAgent> .

<http://www.w3.org/ns/prov#endedAtTime> a rdf:Property ;
  rdfs:range xsd:dateTime .

<http://purl.org/nidash/nidm#AcquisitionObject> a rdfs:Class ;
  rdfs:comment "A data entity produced by an Acquisition.  Can represent imaging data, assessment/questionnaire results, or demographic data.  Also a prov:Entity." .

<http://purl.org/nidash/nidm#hadImageContrastType> a rdf:Property ;
  rdfs:comment "Image contrast type (T1, T2, DWI, etc.)" ;
  rdfs:range <https://purl.org/nidash/nidm/schema/ImageContrastTypeEnum> .

<http://purl.org/nidash/nidm#AcquisitionObject> a rdf:Property ;
  rdfs:comment "Run number for the acquisition (BIDS run entity).  Written by bidsmri2nidm/csv2nidm as nidm:AcquisitionObject with an integer value." ;
  rdfs:range xsd:integer .

<http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#filename> a rdf:Property ;
  rdfs:comment "File path, often in BIDS format (e.g. bids::sub-XX/anat/sub-XX_T1w.nii.gz)" ;
  rdfs:range xsd:string .

<http://purl.org/nidash/nidm#hadAcquisitionModality> a rdf:Property ;
  rdfs:comment "Imaging modality (MRI, PET)" ;
  rdfs:range <https://purl.org/nidash/nidm/schema/AcquisitionModalityEnum> .

<http://id.loc.gov/vocabulary/preservation/cryptographicHashFunctions#sha512> a rdf:Property ;
  rdfs:comment "SHA-512 hash of the file" ;
  rdfs:range xsd:string .

<http://purl.org/nidash/nidm#hadImageUsageType> a rdf:Property ;
  rdfs:comment "Intended image usage (Anatomical, Functional, DWI)" ;
  rdfs:range <https://purl.org/nidash/nidm/schema/ImageUsageTypeEnum> .

<http://purl.org/nidash/nidm#Task> a rdf:Property ;
  rdfs:comment "Task name for functional MRI" ;
  rdfs:range xsd:string .

<http://www.w3.org/ns/prov#Location> a rdf:Property ;
  rdfs:comment "URL or file path location" ;
  rdfs:range xsd:string .

<http://www.w3.org/ns/prov#Person> a rdfs:Class ;
  rdfs:comment "A research participant or subject.  Also a prov:Agent." .

<https://ndar.nih.gov/api/datadictionary/v2/dataelement/src_subject_id> a rdf:Property ;
  rdfs:comment "Subject ID in the study (e.g. 'sub-0050002').  This is the primary human-readable identifier for participants." ;
  rdfs:range xsd:string .

<http://www.w3.org/ns/prov#Association> a rdfs:Class ;
  rdfs:comment "Links an Acquisition activity to an agent (participant) with a specific role.  Typically connects to a Person with role sio:Subject." .

<http://www.w3.org/ns/prov#agent> a rdf:Property ;
  rdfs:comment "The agent (participant) involved" ;
  rdfs:range <http://www.w3.org/ns/prov#Person> .

<http://www.w3.org/ns/prov#hadRole> a rdf:Property ;
  rdfs:comment "Role of the agent (typically sio:Subject)" ;
  rdfs:range xsd:anyURI .

<http://purl.org/nidash/nidm#Project> a rdfs:Class ;
  rdfs:comment "Top-level container for a research project or study.  Every NIDM graph has at least one Project.  A Project is also a prov:Activity." .

<http://www.w3.org/ns/dcat#author> a rdf:Property ;
  rdfs:comment "Dataset author(s)" ;
  rdfs:range xsd:string .

<http://purl.obolibrary.org/obo/IAO_0000324> a rdf:Property ;
  rdfs:comment "Acknowledgments" ;
  rdfs:range xsd:string .

<https://purl.org/nidash/nidm/schema/derivatives> a rdf:Property ;
  rdfs:comment "Derivative processing activities" ;
  rdfs:range <http://purl.org/nidash/nidm#Derivative> .

<http://purl.org/dc/terms/description> a rdf:Property ;
  rdfs:comment "Project description" , "Variable description" ;
  rdfs:range xsd:string .

<https://purl.org/nidash/nidm/schema/sessions> a rdf:Property ;
  rdfs:comment "Sessions belonging to this project" ;
  rdfs:range <http://purl.org/nidash/nidm#Session> .

<http://purl.org/dc/terms/hasVersion> a rdf:Property ;
  rdfs:comment "Dataset version" ;
  rdfs:range xsd:string .

<http://purl.obolibrary.org/obo/IAO_0000623> a rdf:Property ;
  rdfs:comment "Funding information" ;
  rdfs:range xsd:string .

<http://purl.org/dc/dcmitype/title> a rdf:Property ;
  rdfs:comment "Project or study name" ;
  rdfs:range xsd:string .

<http://semanticscience.org/ontology/sio.owl#Identifier> a rdf:Property ;
  rdfs:comment "Project version or identifier" ;
  rdfs:range xsd:string .

<https://purl.org/nidash/nidm/schema/data_elements> a rdf:Property ;
  rdfs:comment "DataElement definitions for this project" ;
  rdfs:range <http://purl.org/nidash/nidm#DataElement> .

<http://purl.org/nidash/nidm#DataElement> a rdfs:Class ;
  rdfs:comment "Metadata describing a measured variable.  Defines the semantics, data type, units, and ontology mapping for a column/variable in the study data.  Also a prov:Entity." .

<http://purl.org/nidash/nidm#hasUnit> a rdf:Property ;
  rdfs:comment "Unit of measurement (e.g. mm^3)" ;
  rdfs:range xsd:string .

<http://purl.org/nidash/nidm#valueType> a rdf:Property ;
  rdfs:comment "XSD data type (xsd:string, xsd:float, xsd:integer)" ;
  rdfs:range xsd:anyURI .

<http://schema.repronim.org/choices> a rdf:Property ;
  rdfs:comment "Valid categorical choices for this variable" ;
  rdfs:range xsd:string .

<http://purl.org/nidash/nidm#measureOf> a rdf:Property ;
  rdfs:comment "Brain structure or region measured" ;
  rdfs:range xsd:anyURI .

<http://purl.org/nidash/nidm#hasLaterality> a rdf:Property ;
  rdfs:comment "Brain laterality (Left, Right, Bilateral)" ;
  rdfs:range xsd:string .

<http://purl.org/nidash/nidm#minValue> a rdf:Property ;
  rdfs:comment "Minimum allowed value" ;
  rdfs:range xsd:string .

<http://purl.org/nidash/nidm#maxValue> a rdf:Property ;
  rdfs:comment "Maximum allowed value" ;
  rdfs:range xsd:string .

<http://purl.org/nidash/nidm#sourceVariable> a rdf:Property ;
  rdfs:comment "Original variable name in source data" ;
  rdfs:range xsd:string .

<http://purl.org/nidash/nidm#datumType> a rdf:Property ;
  rdfs:comment "Type of measurement (e.g. anatomical volume)" ;
  rdfs:range xsd:anyURI .

<http://purl.org/nidash/nidm#isAbout> a rdf:Property ;
  rdfs:comment "Ontology concept this variable measures (typically ilx:, obo:, or dicom: URI)" ;
  rdfs:range xsd:anyURI .

<http://purl.org/nidash/nidm#Derivative> a rdfs:Class ;
  rdfs:comment "A processing or analysis activity that produces derived data (e.g. brain volume measurements from FreeSurfer, FSL, ANTs).  Also a prov:Activity." .

<http://purl.org/nidash/nidm#PersonalDataElement> a rdfs:Class ;
  rdfs:comment "A DataElement for personal or demographic data (age, sex, handedness, diagnosis, etc.).  Subclass of nidm:DataElement." ;
  rdfs:subClassOf <http://purl.org/nidash/nidm#DataElement> .

<http://purl.org/nidash/nidm#Acquisition> a rdfs:Class ;
  rdfs:comment "An acquisition activity such as an MRI scan or questionnaire administration.  Produces AcquisitionObjects.  Also a prov:Activity." .

<http://www.w3.org/ns/prov#qualifiedAssociation> a rdf:Property ;
  rdfs:comment "Association(s) linking this activity to agents (participants)" ;
  rdfs:range <http://www.w3.org/ns/prov#Association> .

<https://purl.org/nidash/nidm/schema/acquisition_objects> a rdf:Property ;
  rdfs:comment "Entities generated by this acquisition" ;
  rdfs:range <http://purl.org/nidash/nidm#AcquisitionObject> .

<http://www.w3.org/ns/prov#SoftwareAgent> a rdfs:Class ;
  rdfs:comment "Software that produced or processed data (e.g. bidsmri2nidm.py, csv2nidm.py, FreeSurfer).  Also a prov:Agent." .

<http://schema.org/name> a rdf:Property ;
  rdfs:comment "Software name (e.g. 'PyNIDM')" ;
  rdfs:range xsd:string .

<http://purl.org/nidash/nidm#command> a rdf:Property ;
  rdfs:comment "Command or script name" ;
  rdfs:range xsd:string .

<http://schema.org/softwareVersion> a rdf:Property ;
  rdfs:comment "Software version string" ;
  rdfs:range xsd:string .

<http://schema.org/runtimePlatform> a rdf:Property ;
  rdfs:comment "Runtime environment (e.g. 'Python 3.9.23')" ;
  rdfs:range xsd:string .

<https://purl.org/nidash/nidm/schema/AcquisitionModalityEnum> a rdfs:Class ;
  rdfs:comment "Imaging acquisition modality types" .

<http://purl.org/nidash/nidm#MagneticResonanceImaging> a <https://purl.org/nidash/nidm/schema/AcquisitionModalityEnum> .

<http://purl.org/nidash/nidm#PositronEmissionTomography> a <https://purl.org/nidash/nidm/schema/AcquisitionModalityEnum> .

<https://purl.org/nidash/nidm/schema/ImageContrastTypeEnum> a rdfs:Class ;
  rdfs:comment "MRI image contrast types" .

<http://purl.org/nidash/nidm#T1Weighted> a <https://purl.org/nidash/nidm/schema/ImageContrastTypeEnum> .

<http://purl.org/nidash/nidm#T2Weighted> a <https://purl.org/nidash/nidm/schema/ImageContrastTypeEnum> .

<http://purl.org/nidash/nidm#T2StarWeighted> a <https://purl.org/nidash/nidm/schema/ImageContrastTypeEnum> .

<http://purl.org/nidash/nidm#DiffusionWeighted> a <https://purl.org/nidash/nidm/schema/ImageContrastTypeEnum> , <https://purl.org/nidash/nidm/schema/ImageUsageTypeEnum> .

<http://purl.org/nidash/nidm#DiffusionTensor> a <https://purl.org/nidash/nidm/schema/ImageContrastTypeEnum> .

<http://purl.org/nidash/nidm#FlowWeighted> a <https://purl.org/nidash/nidm/schema/ImageContrastTypeEnum> .

<http://purl.org/nidash/nidm#ArterialSpinLabeling> a <https://purl.org/nidash/nidm/schema/ImageContrastTypeEnum> .

<https://purl.org/nidash/nidm/schema/ImageUsageTypeEnum> a rdfs:Class ;
  rdfs:comment "Intended usage of an acquired image" .

<http://purl.org/nidash/nidm#Anatomical> a <https://purl.org/nidash/nidm/schema/ImageUsageTypeEnum> .

<http://purl.org/nidash/nidm#Functional> a <https://purl.org/nidash/nidm/schema/ImageUsageTypeEnum> .
