Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code generation #56

Closed
wants to merge 14 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
213 changes: 107 additions & 106 deletions ARCTokenization.sln
Original file line number Diff line number Diff line change
@@ -1,106 +1,107 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{2EB71559-9BE4-4E02-9763-9092876D1E4A}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "sln", "sln", "{CE1B84FD-33DE-48E4-A97A-A4BDC34E08F0}"
ProjectSection(SolutionItems) = preProject
.gitignore = .gitignore
.github\workflows\build-and-test.yml = .github\workflows\build-and-test.yml
build.cmd = build.cmd
build.sh = build.sh
global.json = global.json
LICENSE = LICENSE
package.json = package.json
playground.fsx = playground.fsx
.github\workflows\publish-docs.yml = .github\workflows\publish-docs.yml
README.md = README.md
RELEASE_NOTES.md = RELEASE_NOTES.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{67DA0DCC-75F4-4F30-91C3-309A48B13D49}"
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "ControlledVocabulary", "src\ControlledVocabulary\ControlledVocabulary.fsproj", "{F8E5EFC0-C74B-4C3C-BC22-7A5286A31DF6}"
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "ControlledVocabulary.Tests", "tests\ControlledVocabulary.Tests\ControlledVocabulary.Tests.fsproj", "{2CBEE59D-07E4-460E-8B97-9267965D3F46}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{3DB2A5F4-23F6-4A06-9AE5-CEAC0707735B}"
ProjectSection(SolutionItems) = preProject
build.cmd = build.cmd
build.sh = build.sh
global.json = global.json
EndProjectSection
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Build", "build\Build.fsproj", "{ED24D0E3-BA79-4F6D-9A30-D05FF4EBAFDB}"
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "ARCTokenization", "src\ARCTokenization\ARCTokenization.fsproj", "{24D99DC2-DF18-45A3-B444-B60351F131DB}"
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "ARCTokenization.Tests", "tests\ARCTokenization.Tests\ARCTokenization.Tests.fsproj", "{30177EF1-3980-4FFE-9B49-90B75DCEBDA3}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{551D4715-5ECD-4CAB-8A4A-41E246F4A7B5}"
ProjectSection(SolutionItems) = preProject
docs\index.ipynb = docs\index.ipynb
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ARCTokenization", "ARCTokenization", "{699C5B9A-EA4B-4D25-B05D-16CA14320CFB}"
ProjectSection(SolutionItems) = preProject
docs\ARCTokenization\Introduction.ipynb = docs\ARCTokenization\Introduction.ipynb
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ControlledVocabulary", "ControlledVocabulary", "{524F5156-C079-4AEF-822E-F01DAE6874AA}"
ProjectSection(SolutionItems) = preProject
docs\ControlledVocabulary\CvParam.ipynb = docs\ControlledVocabulary\CvParam.ipynb
docs\ControlledVocabulary\Introduction.ipynb = docs\ControlledVocabulary\Introduction.ipynb
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".ci", ".ci", "{4805A6D8-8D85-48F5-8902-57CECF872AE6}"
ProjectSection(SolutionItems) = preProject
.github\workflows\build-and-test.yml = .github\workflows\build-and-test.yml
.github\workflows\publish-docs.yml = .github\workflows\publish-docs.yml
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F8E5EFC0-C74B-4C3C-BC22-7A5286A31DF6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F8E5EFC0-C74B-4C3C-BC22-7A5286A31DF6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F8E5EFC0-C74B-4C3C-BC22-7A5286A31DF6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F8E5EFC0-C74B-4C3C-BC22-7A5286A31DF6}.Release|Any CPU.Build.0 = Release|Any CPU
{2CBEE59D-07E4-460E-8B97-9267965D3F46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2CBEE59D-07E4-460E-8B97-9267965D3F46}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2CBEE59D-07E4-460E-8B97-9267965D3F46}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2CBEE59D-07E4-460E-8B97-9267965D3F46}.Release|Any CPU.Build.0 = Release|Any CPU
{ED24D0E3-BA79-4F6D-9A30-D05FF4EBAFDB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{ED24D0E3-BA79-4F6D-9A30-D05FF4EBAFDB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{ED24D0E3-BA79-4F6D-9A30-D05FF4EBAFDB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{ED24D0E3-BA79-4F6D-9A30-D05FF4EBAFDB}.Release|Any CPU.Build.0 = Release|Any CPU
{24D99DC2-DF18-45A3-B444-B60351F131DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{24D99DC2-DF18-45A3-B444-B60351F131DB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{24D99DC2-DF18-45A3-B444-B60351F131DB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{24D99DC2-DF18-45A3-B444-B60351F131DB}.Release|Any CPU.Build.0 = Release|Any CPU
{30177EF1-3980-4FFE-9B49-90B75DCEBDA3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{30177EF1-3980-4FFE-9B49-90B75DCEBDA3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{30177EF1-3980-4FFE-9B49-90B75DCEBDA3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{30177EF1-3980-4FFE-9B49-90B75DCEBDA3}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{F8E5EFC0-C74B-4C3C-BC22-7A5286A31DF6} = {67DA0DCC-75F4-4F30-91C3-309A48B13D49}
{2CBEE59D-07E4-460E-8B97-9267965D3F46} = {2EB71559-9BE4-4E02-9763-9092876D1E4A}
{ED24D0E3-BA79-4F6D-9A30-D05FF4EBAFDB} = {3DB2A5F4-23F6-4A06-9AE5-CEAC0707735B}
{24D99DC2-DF18-45A3-B444-B60351F131DB} = {67DA0DCC-75F4-4F30-91C3-309A48B13D49}
{30177EF1-3980-4FFE-9B49-90B75DCEBDA3} = {2EB71559-9BE4-4E02-9763-9092876D1E4A}
{699C5B9A-EA4B-4D25-B05D-16CA14320CFB} = {551D4715-5ECD-4CAB-8A4A-41E246F4A7B5}
{524F5156-C079-4AEF-822E-F01DAE6874AA} = {551D4715-5ECD-4CAB-8A4A-41E246F4A7B5}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {933E3470-7D09-4F22-A056-2407458B9600}
EndGlobalSection
EndGlobal

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{2EB71559-9BE4-4E02-9763-9092876D1E4A}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "sln", "sln", "{CE1B84FD-33DE-48E4-A97A-A4BDC34E08F0}"
ProjectSection(SolutionItems) = preProject
.gitignore = .gitignore
.github\workflows\build-and-test.yml = .github\workflows\build-and-test.yml
build.cmd = build.cmd
build.sh = build.sh
global.json = global.json
codeGenTestScript.fsx = codeGenTestScript.fsx
LICENSE = LICENSE
package.json = package.json
playground.fsx = playground.fsx
.github\workflows\publish-docs.yml = .github\workflows\publish-docs.yml
README.md = README.md
RELEASE_NOTES.md = RELEASE_NOTES.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{67DA0DCC-75F4-4F30-91C3-309A48B13D49}"
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "ControlledVocabulary", "src\ControlledVocabulary\ControlledVocabulary.fsproj", "{F8E5EFC0-C74B-4C3C-BC22-7A5286A31DF6}"
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "ControlledVocabulary.Tests", "tests\ControlledVocabulary.Tests\ControlledVocabulary.Tests.fsproj", "{2CBEE59D-07E4-460E-8B97-9267965D3F46}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{3DB2A5F4-23F6-4A06-9AE5-CEAC0707735B}"
ProjectSection(SolutionItems) = preProject
build.cmd = build.cmd
build.sh = build.sh
global.json = global.json
EndProjectSection
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Build", "build\Build.fsproj", "{ED24D0E3-BA79-4F6D-9A30-D05FF4EBAFDB}"
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "ARCTokenization", "src\ARCTokenization\ARCTokenization.fsproj", "{24D99DC2-DF18-45A3-B444-B60351F131DB}"
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "ARCTokenization.Tests", "tests\ARCTokenization.Tests\ARCTokenization.Tests.fsproj", "{30177EF1-3980-4FFE-9B49-90B75DCEBDA3}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{551D4715-5ECD-4CAB-8A4A-41E246F4A7B5}"
ProjectSection(SolutionItems) = preProject
docs\index.ipynb = docs\index.ipynb
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ARCTokenization", "ARCTokenization", "{699C5B9A-EA4B-4D25-B05D-16CA14320CFB}"
ProjectSection(SolutionItems) = preProject
docs\ARCTokenization\Introduction.ipynb = docs\ARCTokenization\Introduction.ipynb
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ControlledVocabulary", "ControlledVocabulary", "{524F5156-C079-4AEF-822E-F01DAE6874AA}"
ProjectSection(SolutionItems) = preProject
docs\ControlledVocabulary\CvParam.ipynb = docs\ControlledVocabulary\CvParam.ipynb
docs\ControlledVocabulary\Introduction.ipynb = docs\ControlledVocabulary\Introduction.ipynb
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".ci", ".ci", "{4805A6D8-8D85-48F5-8902-57CECF872AE6}"
ProjectSection(SolutionItems) = preProject
.github\workflows\build-and-test.yml = .github\workflows\build-and-test.yml
.github\workflows\publish-docs.yml = .github\workflows\publish-docs.yml
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F8E5EFC0-C74B-4C3C-BC22-7A5286A31DF6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F8E5EFC0-C74B-4C3C-BC22-7A5286A31DF6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F8E5EFC0-C74B-4C3C-BC22-7A5286A31DF6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F8E5EFC0-C74B-4C3C-BC22-7A5286A31DF6}.Release|Any CPU.Build.0 = Release|Any CPU
{2CBEE59D-07E4-460E-8B97-9267965D3F46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2CBEE59D-07E4-460E-8B97-9267965D3F46}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2CBEE59D-07E4-460E-8B97-9267965D3F46}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2CBEE59D-07E4-460E-8B97-9267965D3F46}.Release|Any CPU.Build.0 = Release|Any CPU
{ED24D0E3-BA79-4F6D-9A30-D05FF4EBAFDB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{ED24D0E3-BA79-4F6D-9A30-D05FF4EBAFDB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{ED24D0E3-BA79-4F6D-9A30-D05FF4EBAFDB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{ED24D0E3-BA79-4F6D-9A30-D05FF4EBAFDB}.Release|Any CPU.Build.0 = Release|Any CPU
{24D99DC2-DF18-45A3-B444-B60351F131DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{24D99DC2-DF18-45A3-B444-B60351F131DB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{24D99DC2-DF18-45A3-B444-B60351F131DB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{24D99DC2-DF18-45A3-B444-B60351F131DB}.Release|Any CPU.Build.0 = Release|Any CPU
{30177EF1-3980-4FFE-9B49-90B75DCEBDA3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{30177EF1-3980-4FFE-9B49-90B75DCEBDA3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{30177EF1-3980-4FFE-9B49-90B75DCEBDA3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{30177EF1-3980-4FFE-9B49-90B75DCEBDA3}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{F8E5EFC0-C74B-4C3C-BC22-7A5286A31DF6} = {67DA0DCC-75F4-4F30-91C3-309A48B13D49}
{2CBEE59D-07E4-460E-8B97-9267965D3F46} = {2EB71559-9BE4-4E02-9763-9092876D1E4A}
{ED24D0E3-BA79-4F6D-9A30-D05FF4EBAFDB} = {3DB2A5F4-23F6-4A06-9AE5-CEAC0707735B}
{24D99DC2-DF18-45A3-B444-B60351F131DB} = {67DA0DCC-75F4-4F30-91C3-309A48B13D49}
{30177EF1-3980-4FFE-9B49-90B75DCEBDA3} = {2EB71559-9BE4-4E02-9763-9092876D1E4A}
{699C5B9A-EA4B-4D25-B05D-16CA14320CFB} = {551D4715-5ECD-4CAB-8A4A-41E246F4A7B5}
{524F5156-C079-4AEF-822E-F01DAE6874AA} = {551D4715-5ECD-4CAB-8A4A-41E246F4A7B5}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {933E3470-7D09-4F22-A056-2407458B9600}
EndGlobalSection
EndGlobal
17 changes: 15 additions & 2 deletions build/BasicTasks.fs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ open Fake.DotNet
open Fake.IO.Globbing.Operators
open System.IO
open Fake.IO
open ARCTokenization.StructuralOntology
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While it seems to work, i really do not like this circular dependency, where the build project is dependent on one of the projects it is supposed to build.

open FSharpAux

open ProjectInfo

Expand Down Expand Up @@ -46,10 +48,21 @@ let buildOntologies =
)
}

let buildSourceFiles =
BuildTask.create "BuildSourceFiles" [clean; buildOntologies] {
sourceFileSources
|> List.iter (fun sourceFileSource ->
let oboFilePath = (FileInfo sourceFileSource).DirectoryName
let oboFile = OBO.NET.OboOntology.fromFile false sourceFileSource
let modName = List.head oboFile.Terms |> CodeGeneration.toTermSourceRef
let sourceFilePath = Path.Combine(oboFilePath, $"{modName}.fs")
CodeGeneration.toFile modName oboFile sourceFilePath
)
}

/// builds the solution file (dotnet build solution.sln)
let buildSolution =
BuildTask.create "BuildSolution" [ clean ; buildOntologies ] {
BuildTask.create "BuildSolution" [ clean ; buildOntologies; buildSourceFiles ] {
solutionFile
|> DotNet.build (fun p ->
let msBuildParams =
Expand All @@ -76,7 +89,7 @@ let buildSolution =
/// - AssemblyInformationalVersion
///
/// - warnon:3390 for xml doc formatting warnings on compilation
let build = BuildTask.create "Build" [clean; buildOntologies] {
let build = BuildTask.create "Build" [clean; buildOntologies; buildSourceFiles] {
projects
|> List.iter (fun pInfo ->
let proj = pInfo.ProjFile
Expand Down
1 change: 1 addition & 0 deletions build/Build.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\src\ARCTokenization\ARCTokenization.fsproj" PackageVersion="[1.0.0, 2.0.0)" />
<PackageReference Include="BlackFox.Fake.BuildTask" Version="0.1.3" />
<PackageReference Include="Fake.Api.Github" Version="5.23.1" />
<PackageReference Include="Fake.Core.Process" Version="5.23.1" />
Expand Down
8 changes: 8 additions & 0 deletions build/ProjectInfo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ let structuralOntologySources = [
"src/ARCTokenization/structural_ontologies/arc_file_structure_ontology.yml"
]

let sourceFileSources = [
"src/ARCTokenization/structural_ontologies/investigation_metadata_structural_ontology.obo"
"src/ARCTokenization/structural_ontologies/study_metadata_structural_ontology.obo"
"src/ARCTokenization/structural_ontologies/assay_metadata_structural_ontology.obo"
"src/ARCTokenization/structural_ontologies/arc_process_graph_structural_ontology.obo"
"src/ARCTokenization/structural_ontologies/arc_file_structure_ontology.obo"
]

let solutionFile = $"{project}.sln"

let configuration = "Release"
Expand Down
42 changes: 42 additions & 0 deletions codeGenTestScript.fsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#I "src/ControlledVocabulary/bin/Debug/netstandard2.0"
#I "src/ControlledVocabulary/bin/Release/netstandard2.0"
#r "ControlledVocabulary.dll"
#I "src/ARCTokenization/bin/Debug/netstandard2.0"
#I "src/ARCTokenization/bin/Release/netstandard2.0"
#r "ARCTokenization.dll"

#r "nuget: OBO.NET"
#r "nuget: FSharpAux"


open ControlledVocabulary
open ARCTokenization
open OBO.NET
open FSharpAux


[<Literal>]
let baseString = """module INVSMO =

"""

let onto = OboOntology.fromFile false @"C:\Repos\nfdi4plants\ARCTokenization\src\ARCTokenization\structural_ontologies\investigation_metadata_structural_ontology.obo"

let toUnderscoredName (term : OboTerm) =
term.Name
|> String.replace " " "_"

let toTermSourceRef (term : OboTerm) =
term.Id
|> String.takeWhile ((<>) ':')

let toCodeString (term : OboTerm) =
$" let {toUnderscoredName term} = CvTerm.create(\"{term.Id}\", \"{term.Name}\", \"{toTermSourceRef term}\"){System.Environment.NewLine}{System.Environment.NewLine}"

toCodeString onto.Terms.Head

let toSourceCode (onto : OboOntology) =
let concattedSingleValues = String.init onto.Terms.Length (fun i -> $"{toCodeString onto.Terms[i]}")
$"{baseString}{concattedSingleValues}"

toSourceCode onto
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please stop committing test scripts to repos. Pls refactor anything relevant to actual unit tests or do not commit it at all.

11 changes: 10 additions & 1 deletion playground.fsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#r "nuget: FSharpAux"
//#r "nuget: FsOboParser"
#r "nuget: OBO.NET"
#r "nuget: FsSpreadsheet.ExcelIO, 4.1.0"

Expand All @@ -11,7 +12,9 @@

open FsSpreadsheet
open FsSpreadsheet.ExcelIO
//open FsOboParser
open OBO.NET
//open FsSpreadsheet.DSL
open ControlledVocabulary
open type ControlledVocabulary.ParamBase
open ARCTokenization
Expand Down Expand Up @@ -47,6 +50,12 @@ let its = Investigation.parseMetadataSheetsFromTokens() afts




let ot = List.head Terms.InvestigationMetadata.ontology.Terms

ARCTokenization.StructuralOntology.CodeGeneration.toCodeString ot
CodeGeneration.toSourceCode "Investigation" Terms.InvestigationMetadata.ontology

System.IO.Directory.GetCurrentDirectory()
let fakePath = CvParam(cvTerm = AFSO.``File Path``, v = System.IO.Directory.GetCurrentDirectory() + "/tests/ARCTokenization.Tests/Fixtures/correct/investigation_simple.xlsx")

Expand Down Expand Up @@ -124,7 +133,7 @@ let expectedTermValuesSimple =
[""]
[""]
[""]
[""; "Maus"; "Keider"; "müller"; "oih"]
[""; "Maus"; "Keider"; "müller"; "oih"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you seriously need to fix your encoding problems 😆

[""; "Oliver"; "andreas"]
[""; "L. I."; "C."]
[""; "[email protected]"]
Expand Down
1 change: 1 addition & 0 deletions src/ARCTokenization/ARCTokenization.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

<ItemGroup>
<None Include="RELEASE_NOTES.md" />
<Compile Include="structural_ontologies\CodeGeneration.fs" />
<Compile Include="structural_ontologies\AFSO.fs" />
<Compile Include="structural_ontologies\APGSO.fs" />
<Compile Include="structural_ontologies\INVMSO.fs" />
Expand Down
Loading
Loading