@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix : <https://blog.neuralstorm.io/knowledge#> .
@prefix rel: <https://blog.neuralstorm.io/vocab#> .

:scheme a skos:ConceptScheme ;
  rdfs:label "Blog Domain Knowledge Scheme" .

:bijection a skos:Concept, rel:pattern ;
  skos:inScheme :scheme ;
  skos:prefLabel "Bijection"@en-GB ;
  skos:definition "A total function that is both injective and surjective."@en-GB ;
  skos:broader :function ;
  prov:wasDerivedFrom <https://blog.neuralstorm.io/posts/functions-to-asymmetric-cryptography> .

:cryptography a skos:Concept, rel:concept ;
  skos:inScheme :scheme ;
  skos:prefLabel "Cryptography"@en-GB ;
  skos:definition "The practice and study of techniques for secure communication in the presence of third-party adversaries."@en-GB ;
  skos:broader :mathematics ;
  prov:wasDerivedFrom <https://blog.neuralstorm.io/posts/functions-to-asymmetric-cryptography> .

:dependent-types a skos:Concept, rel:concept ;
  skos:inScheme :scheme ;
  skos:prefLabel "Dependent Types"@en-GB ;
  skos:definition "Types that depend on the values of other types, allowing for more expressive and flexible type systems."@en-GB ;
  skos:broader :type-theory ;
  prov:wasDerivedFrom <https://blog.neuralstorm.io/posts/type-theory-for-cpp-and-odin-engineers> .

:domain-knowledge a skos:Concept, rel:concept ;
  skos:inScheme :scheme ;
  skos:prefLabel "Domain Knowledge"@en-GB ;
  skos:definition "Knowledge about a specific domain or area of expertise that is used to inform the design of types and type systems."@en-GB ;
  skos:broader :type-theory ;
  prov:wasDerivedFrom <https://blog.neuralstorm.io/posts/type-theory-for-cpp-and-odin-engineers> .

:formal-system a skos:Concept, rel:domain ;
  skos:inScheme :scheme ;
  skos:prefLabel "Formal System"@en-GB ;
  skos:definition "Domain encompassing Type Theory."@en-GB ;
  prov:wasDerivedFrom <https://blog.neuralstorm.io/posts/type-theory-for-cpp-and-odin-engineers> .

:formal-verification a skos:Concept, rel:technology ;
  skos:inScheme :scheme ;
  skos:prefLabel "Formal Verification"@en-GB ;
  skos:definition "The process of using mathematical techniques to prove the correctness of software and hardware designs."@en-GB ;
  skos:broader :software-development ;
  prov:wasDerivedFrom <https://blog.neuralstorm.io/posts/type-theory-for-cpp-and-odin-engineers> .

:function a skos:Concept, rel:concept ;
  skos:inScheme :scheme ;
  skos:prefLabel "Function"@en-GB ;
  skos:definition "Associates each input with exactly one output."@en-GB ;
  skos:broader :set ;
  prov:wasDerivedFrom <https://blog.neuralstorm.io/posts/functions-to-asymmetric-cryptography> .

:injection a skos:Concept, rel:pattern ;
  skos:inScheme :scheme ;
  skos:prefLabel "Injection"@en-GB ;
  skos:definition "A function where distinct inputs always have distinct outputs."@en-GB ;
  skos:broader :function ;
  prov:wasDerivedFrom <https://blog.neuralstorm.io/posts/functions-to-asymmetric-cryptography> .

:lean a skos:Concept, rel:technology ;
  skos:inScheme :scheme ;
  skos:prefLabel "Lean"@en-GB ;
  skos:definition "A formal verification system that uses type theory to prove the correctness of software and hardware designs."@en-GB ;
  skos:broader :formal-verification ;
  prov:wasDerivedFrom <https://blog.neuralstorm.io/posts/type-theory-for-cpp-and-odin-engineers> .

:mathematics a skos:Concept, rel:domain ;
  skos:inScheme :scheme ;
  skos:prefLabel "Mathematics"@en-GB ;
  skos:definition "Domain encompassing Set, Cryptography."@en-GB ;
  prov:wasDerivedFrom <https://blog.neuralstorm.io/posts/functions-to-asymmetric-cryptography> .

:partial-function a skos:Concept, rel:concept ;
  skos:inScheme :scheme ;
  skos:prefLabel "Partial Function"@en-GB ;
  skos:definition "A function that may be undefined for some elements of its declared input set."@en-GB ;
  skos:broader :function ;
  prov:wasDerivedFrom <https://blog.neuralstorm.io/posts/functions-to-asymmetric-cryptography> .

:set a skos:Concept, rel:concept ;
  skos:inScheme :scheme ;
  skos:prefLabel "Set"@en-GB ;
  skos:definition "A collection of elements."@en-GB ;
  skos:broader :mathematics ;
  prov:wasDerivedFrom <https://blog.neuralstorm.io/posts/functions-to-asymmetric-cryptography> .

:software-development a skos:Concept, rel:domain ;
  skos:inScheme :scheme ;
  skos:prefLabel "Software Development"@en-GB ;
  skos:definition "Domain encompassing Formal Verification."@en-GB ;
  prov:wasDerivedFrom <https://blog.neuralstorm.io/posts/type-theory-for-cpp-and-odin-engineers> .

:surjection a skos:Concept, rel:pattern ;
  skos:inScheme :scheme ;
  skos:prefLabel "Surjection"@en-GB ;
  skos:definition "A function where every codomain element is reached."@en-GB ;
  skos:broader :function ;
  prov:wasDerivedFrom <https://blog.neuralstorm.io/posts/functions-to-asymmetric-cryptography> .

:total-function a skos:Concept, rel:concept ;
  skos:inScheme :scheme ;
  skos:prefLabel "Total Function"@en-GB ;
  skos:definition "A function where every element of its domain has exactly one output."@en-GB ;
  skos:broader :function ;
  prov:wasDerivedFrom <https://blog.neuralstorm.io/posts/functions-to-asymmetric-cryptography> .

:type a skos:Concept, rel:concept ;
  skos:inScheme :scheme ;
  skos:prefLabel "Type"@en-GB ;
  skos:definition "A classification of data that determines the set of possible values it can take."@en-GB ;
  skos:broader :type-theory ;
  prov:wasDerivedFrom <https://blog.neuralstorm.io/posts/type-theory-for-cpp-and-odin-engineers> .

:type-inference a skos:Concept, rel:concept ;
  skos:inScheme :scheme ;
  skos:prefLabel "Type Inference"@en-GB ;
  skos:definition "The process of automatically determining the types of expressions in a programming language."@en-GB ;
  skos:broader :type-system ;
  prov:wasDerivedFrom <https://blog.neuralstorm.io/posts/type-theory-for-cpp-and-odin-engineers> .

:type-system a skos:Concept, rel:concept ;
  skos:inScheme :scheme ;
  skos:prefLabel "Type System"@en-GB ;
  skos:definition "A set of rules that govern how types can be combined and reasoned about in a programming language."@en-GB ;
  skos:broader :type-theory ;
  prov:wasDerivedFrom <https://blog.neuralstorm.io/posts/type-theory-for-cpp-and-odin-engineers> .

:type-theory a skos:Concept, rel:technology ;
  skos:inScheme :scheme ;
  skos:prefLabel "Type Theory"@en-GB ;
  skos:definition "A formal system that defines types, their associated terms, and the rules governing how those terms can be constructed, combined and reasoned about."@en-GB ;
  skos:broader :formal-system ;
  prov:wasDerivedFrom <https://blog.neuralstorm.io/posts/type-theory-for-cpp-and-odin-engineers> .

# Ontology triples with post provenance
:bijection rel:specialises :total-function . # source: https://blog.neuralstorm.io/posts/functions-to-asymmetric-cryptography
:cryptography rel:uses :bijection . # source: https://blog.neuralstorm.io/posts/functions-to-asymmetric-cryptography
:dependent-types rel:extends :type-theory . # source: https://blog.neuralstorm.io/posts/type-theory-for-cpp-and-odin-engineers
:function rel:implements :set . # source: https://blog.neuralstorm.io/posts/functions-to-asymmetric-cryptography
:injection rel:characterises :function . # source: https://blog.neuralstorm.io/posts/functions-to-asymmetric-cryptography
:lean rel:implements :type-theory . # source: https://blog.neuralstorm.io/posts/type-theory-for-cpp-and-odin-engineers
:partial-function rel:specialises :function . # source: https://blog.neuralstorm.io/posts/functions-to-asymmetric-cryptography
:surjection rel:characterises :function . # source: https://blog.neuralstorm.io/posts/functions-to-asymmetric-cryptography
:total-function rel:specialises :function . # source: https://blog.neuralstorm.io/posts/functions-to-asymmetric-cryptography
:type-inference rel:is_a_part_of :type-system . # source: https://blog.neuralstorm.io/posts/type-theory-for-cpp-and-odin-engineers
:type-system rel:is_governed_by :type-theory . # source: https://blog.neuralstorm.io/posts/type-theory-for-cpp-and-odin-engineers
:type-theory rel:uses :domain-knowledge . # source: https://blog.neuralstorm.io/posts/type-theory-for-cpp-and-odin-engineers
