PREFIX project: <http://linked.data.gov.au/def/project#>
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/dc/terms/Location> a rdfs:Class .

<http://www.w3.org/ns/prov#Plan> a rdfs:Class .

<http://www.w3.org/ns/prov#ActivityInfluence> a rdfs:Class .

<https://schema.org/Person> a rdfs:Class .

project:SumOfMoney a rdfs:Class ;
  rdfs:label "Sum of money" ;
  rdfs:comment "A sum of money, expressed as an amount and a specified currency" .

project:moneyCurrency a rdf:Property ;
  rdfs:label "currency of a sum of money" ;
  rdfs:domain project:SumOfMoney ;
  rdfs:range <https://w3id.org/linkml/Any> .

project:moneyAmount a rdf:Property ;
  rdfs:label "Money amount" ;
  rdfs:comment "Numeric value of a sum of money, which must be scaled by a specified currency to get the actual value" ;
  rdfs:domain project:SumOfMoney ;
  rdfs:range xsd:decimal .

<http://www.w3.org/ns/prov#Activity> a rdfs:Class .

project:hadSubActivity a rdf:Property ;
  rdfs:label "has sub-activity" ;
  rdfs:comment """
Relationship from an activity to a subsidiary activity.
""" ;
  rdfs:domain <http://www.w3.org/ns/prov#Activity> ;
  rdfs:range <http://www.w3.org/ns/prov#Activity> .

project:hadRelatedActivity a rdf:Property ;
  rdfs:label "had related activity" ;
  rdfs:comment """
Link from an activity to a related activity.
""" ;
  rdfs:domain <http://www.w3.org/ns/prov#Activity> ;
  rdfs:range <http://www.w3.org/ns/prov#ActivityInfluence> ;
  rdfs:subPropertyOf <http://www.w3.org/ns/prov#qualifiedInfluence> .

<http://www.w3.org/ns/prov#Person> a rdfs:Class .

<http://www.w3.org/ns/prov#Association> a rdfs:Class .

project:Project a rdfs:Class ;
  rdfs:label "Project" ;
  rdfs:comment """
A Project is a planned activity with a budget, a sponsor, and a leader.

Project stakeholders are indicated using `prov:wasAssociatedWith` or the `prov:qualifiedAssociation` structure which allows their role to be catpured. Some special stakeholders have specific sub-properties with the roles fixed, including project-leader, project-participant, and project-funder.

Activities within a project are indicated using the `proj:hasSubActivity` (simple) or `proj:subActivityAssociation` properties - the latter allowing the nature of the relationshp to be described as well. 

![Project details](../images/Project.png)

""" ;
  rdfs:subClassOf <http://www.w3.org/ns/prov#Activity> .

project:plannedStart a rdf:Property ;
  rdfs:label "planned start-date|time" ;
  rdfs:comment "The date and time at which an activity was planned to start. See also project:plannedEnd."@en ;
  rdfs:range <https://w3id.org/linkml/Any> .

project:hadBudgetTotal a rdf:Property ;
  rdfs:label "total project budget" ;
  rdfs:comment """
Basic funding arrangements are captured through the `proj:hadSponsor` and `proj:hadBudgetTotal` properties.
  
More complex arrangements, for example if multiple funders are involved, can be captured through the `proj:wasFundedThrough` property, which links a funding agent with a funding amount in the context of a project.
""" ;
  rdfs:domain project:Project ;
  rdfs:range project:SumOfMoney .

project:hadAreaOfInterest a rdf:Property ;
  rdfs:label "has area of interest" ;
  rdfs:comment """
Address, place, locality, location, etc
""" ;
  rdfs:domain project:Project ;
  rdfs:range <http://purl.org/dc/terms/Location> ;
  rdfs:subPropertyOf <http://www.w3.org/ns/prov#atLocation> .

project:hadSponsor a rdf:Property ;
  rdfs:label "activity sponsor" ;
  rdfs:comment """
There are a number of distinctive stakeholders in a project, in particular: a leader who is accountable for the delivery of project outcomes; a sponsor under whose authority the project is undertaken; funders; and project staff or participants.
In some cases it is useful to provide specific details of a participant's role in the project.
PROJECT provides a number of ways to represent the relationships of stakeholders to projects and activities.

Basic funding arrangements are captured through the `proj:hadSponsor` and `proj:hadBudgetTotal` properties.
More complex arrangements, for example if multiple funders are involved, can be captured through the `proj:wasFundedThrough` property, which links a funding agent with a funding amount in the context of a project.

![Project funding association](../images/Project-funding.png)

""" ;
  rdfs:domain project:Project ;
  rdfs:range <https://w3id.org/linkml/Any> ;
  rdfs:subPropertyOf <http://www.w3.org/ns/prov#wasAssociatedWith> .

project:hadLeader a rdf:Property ;
  rdfs:label "leader" ;
  rdfs:comment """
There are a number of distinctive stakeholders in a project, in particular: a leader who is accountable for the delivery of project outcomes; a sponsor under whose authority the project is undertaken; funders; and project staff or participants.
In some cases it is useful to provide specific details of a participant's role in the project.
PROJECT provides a number of ways to represent the relationships of stakeholders to projects and activities.

The standard role of _leader_ is implemented as a directly named property from an `prov:Activity` to a `prov:Agent`, and _sponsor_ as a directly named property from a `proj:Project` to a `prov:Agent`.

We distinguish one sub-class, the `proj:ResearchProject`, in which the leader(s) is known as a _Principal Investigator_, and which is classified according to its _field of research_.

""" ;
  rdfs:range <http://www.w3.org/ns/prov#Person> ;
  rdfs:subPropertyOf <http://www.w3.org/ns/prov#wasAssociatedWith> .

project:hadObjective a rdf:Property ;
  rdfs:label "project objective" ;
  rdfs:comment "Textual description of project objective." ;
  rdfs:domain project:Project ;
  rdfs:range <https://w3id.org/linkml/Any> .

project:plannedEnd a rdf:Property ;
  rdfs:label "planned end-date|time" ;
  rdfs:comment "The date and time at which an activity was planned to end. See also project:plannedStart."@en ;
  rdfs:range <https://w3id.org/linkml/Any> .

project:wasFundedThrough a rdf:Property ;
  rdfs:label "had funding association" ;
  rdfs:comment """
Basic funding arrangements are captured through the `proj:hadSponsor` and `proj:hadBudgetTotal` properties.
More complex arrangements, for example if multiple funders are involved, can be captured through the `proj:wasFundedThrough` property, which links a funding agent with a funding amount in the context of a project.

![Project funding association](../images/Project-funding.png)

""" ;
  rdfs:domain project:Project ;
  rdfs:range project:FundingAssociation .

project:hadPlan a rdf:Property ;
  rdfs:label "Project plan" ;
  rdfs:comment "The project plan." ;
  rdfs:domain project:Project ;
  rdfs:range <http://www.w3.org/ns/prov#Plan> ;
  rdfs:subPropertyOf <http://www.w3.org/ns/prov#used> .

project:FundingAssociation a rdfs:Class ;
  rdfs:label "Funding association" ;
  rdfs:comment """
Association to a funder and a sum of money

![Project funding association](../images/Project-funding.png)

""" ;
  rdfs:subClassOf <http://www.w3.org/ns/prov#Association> .

project:fundingScheme a rdf:Property ;
  rdfs:label "pointer to funding-scheme" ;
  rdfs:comment """
Link to description of funding scheme, e.g.

- [European Commission Horizon 2020](https://ec.europa.eu/programmes/horizon2020/)
- [Australian National Collaborative Research Infrastructure Strategy](https://www.education.gov.au/national-collaborative-research-infrastructure-strategy-ncris)
""" ;
  rdfs:domain project:FundingAssociation ;
  rdfs:range <https://w3id.org/linkml/Any> .

project:grantNumber a rdf:Property ;
  rdfs:label "grant or contract number" ;
  rdfs:comment "The grant or contract number assigned to the funding arrangement by the funder.  'Grant number' is common for research or charitable projects, 'Contract number' in a commercial context." ;
  rdfs:domain project:FundingAssociation ;
  rdfs:range xsd:string .

<http://www.w3.org/ns/prov#agent> a rdf:Property ;
  rdfs:comment "Link to the agent which provided the funds." ;
  rdfs:range <https://w3id.org/linkml/Any> .

<http://www.w3.org/ns/prov#hadRole> a rdf:Property ;
  rdfs:range <https://w3id.org/linkml/Any> .

project:fundsProvided a rdf:Property ;
  rdfs:label "funding provided" ;
  rdfs:comment "Link to a sum of money." ;
  rdfs:range project:SumOfMoney .

<https://schema.org/Organization> a rdfs:Class .

project:ResearchProject a rdfs:Class ;
  rdfs:label "Research Project" ;
  rdfs:comment """
A research project is a project that has 

- one or more PIs who are individual persons, and 
- should be classified according to standard research classification, such as the Australian Bureau of Statistics ANZSRC-FOR or NASA's Global Change Master Directory - Science Keywords. 
""" ;
  rdfs:subClassOf project:Project .

project:hadFieldOfResearch a rdf:Property ;
  rdfs:label "field of research" ;
  rdfs:comment """
The field of research of the research project.
""" ;
  rdfs:domain project:ResearchProject ;
  rdfs:range <http://www.w3.org/2004/02/skos/core#Concept> ;
  rdfs:subPropertyOf <http://purl.org/dc/terms/subject> .

project:hadPrincipalInvestigator a rdf:Property ;
  rdfs:label "principal investigator" ;
  rdfs:comment """
The person who acts as principal investigator on the research project.
""" ;
  rdfs:domain project:ResearchProject ;
  rdfs:range <http://www.w3.org/ns/prov#Person> ;
  rdfs:subPropertyOf project:hadLeader .

<http://www.w3.org/2004/02/skos/core#Concept> a rdfs:Class .

<https://w3id.org/linkml/Any> a rdfs:Class ;
  rdfs:comment "An unconstrained type or object" ;
  rdfs:seeAlso <https://linkml.io/linkml/schemas/advanced.html#linkml-any-type> .

<https://schema.org/AboutPage> a rdfs:Class .

project:wasSubActivityOf a rdf:Property ;
  rdfs:label "is sub-activity of" ;
  rdfs:comment """
Relationship from an activity to its parent activity or project.
""" ;
  rdfs:range xsd:string ;
  rdfs:subPropertyOf <http://www.w3.org/ns/prov#wasInformedBy> .

<http://purl.org/dc/terms/subject> a rdf:Property ;
  rdfs:range <https://w3id.org/linkml/Any> .

<http://www.w3.org/ns/prov#atLocation> a rdf:Property ;
  rdfs:range <https://w3id.org/linkml/Any> .

<http://www.w3.org/ns/prov#qualifiedInfluence> a rdf:Property ;
  rdfs:range <https://w3id.org/linkml/Any> .

<http://www.w3.org/ns/prov#used> a rdf:Property ;
  rdfs:range <https://w3id.org/linkml/Any> .

<http://www.w3.org/ns/prov#wasAssociatedWith> a rdf:Property ;
  rdfs:range <https://w3id.org/linkml/Any> .

<http://www.w3.org/ns/prov#wasInformedBy> a rdf:Property ;
  rdfs:range <https://w3id.org/linkml/Any> .

<http://www.w3.org/ns/prov#Role> a rdfs:Class ;
  rdfs:subClassOf <http://www.w3.org/2004/02/skos/core#Concept> .

<http://linked.data.gov.au/def/project/PrincipalInvestigator> a <http://www.w3.org/ns/prov#Role> ;
  rdfs:label "principal-investigator role" .

<http://linked.data.gov.au/def/project/Funder> a <http://www.w3.org/ns/prov#Role> ;
  rdfs:label "funding-agent role" .

<http://linked.data.gov.au/def/project/Leader> a <http://www.w3.org/ns/prov#Role> ;
  rdfs:label "activity-leader role" .

<http://linked.data.gov.au/def/project/SubActivity> a <http://www.w3.org/ns/prov#Role> ;
  rdfs:label "sub-activity" .

<http://linked.data.gov.au/def/project/Participant> a <http://www.w3.org/ns/prov#Role> ;
  rdfs:label "activity-participant role" .

<http://linked.data.gov.au/def/project/Sponsor> a <http://www.w3.org/ns/prov#Role> ;
  rdfs:label "project-sponsor role" .
