-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature-codeGeneration-#55
- Loading branch information
Showing
24 changed files
with
2,068 additions
and
1,728 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,8 @@ | ||
//open System.IO | ||
//open System.Collections.Generic | ||
|
||
//let dllBasePath = @"c:/repos/csbiology/fsspreadsheet/src" | ||
//File.Copy(dllBasePath + "/FsSpreadsheet/bin/Debug/netstandard2.0/FsSpreadsheet.dll", dllBasePath + "/FsSpreadsheet/bin/Debug/netstandard2.0/FsSpreadsheet_Copy.dll", true) | ||
//File.Copy(dllBasePath + "/FsSpreadsheet.CsvIO/bin/Debug/netstandard2.0/FsSpreadsheet.CsvIO.dll", dllBasePath + "/FsSpreadsheet.CsvIO/bin/Debug/netstandard2.0/FsSpreadsheet.CsvIO_Copy.dll", true) | ||
//File.Copy(dllBasePath + "/FsSpreadsheet.ExcelIO/bin/Debug/netstandard2.0/FsSpreadsheet.ExcelIO.dll", dllBasePath + "/FsSpreadsheet.ExcelIO/bin/Debug/netstandard2.0/FsSpreadsheet.ExcelIO_Copy.dll", true) | ||
//File.Copy(@"C:\Repos\nfdi4plants\ArcGraphModel\src\ArcGraphModel\bin\Debug\net6.0\ArcGraphModel.dll", @"C:\Repos\nfdi4plants\ArcGraphModel\src\ArcGraphModel\bin\Debug\net6.0\ArcGraphModel_Copy.dll", true) | ||
|
||
#r "nuget: FSharpAux" | ||
//#r "nuget: FsOboParser" | ||
#r "nuget: OBO.NET" | ||
#r "nuget: FsSpreadsheet.ExcelIO, 4.1.0" | ||
#r "nuget: FSharp.FGL.ArrayAdjacencyGraph" | ||
|
||
open DocumentFormat.OpenXml | ||
open FSharpAux | ||
open FSharp.FGL | ||
open FSharp.FGL.ArrayAdjacencyGraph | ||
open System.Collections.Generic | ||
|
||
|
||
//#r "c:/repos/csbiology/fsspreadsheet/src/FsSpreadsheet/bin/Debug/netstandard2.0/FsSpreadsheet.dll" | ||
//#r "c:/repos/csbiology/fsspreadsheet/src/FsSpreadsheet.CsvIO/bin/Debug/netstandard2.0/FsSpreadsheet.CsvIO.dll" | ||
//#r "c:/repos/csbiology/fsspreadsheet/src/FsSpreadsheet.ExcelIO/bin/Debug/netstandard2.0/FsSpreadsheet.ExcelIO.dll" | ||
//#r @"C:\Repos\nfdi4plants\ArcGraphModel\src\ArcGraphModel\bin\Debug\net6.0\ArcGraphModel.dll" | ||
//#r @"C:\Repos\nfdi4plants\ArcGraphModel\src\ArcGraphModel\bin\Debug\netstandard2.0\ArcGraphModel.dll" | ||
//#r @"C:\Repos\nfdi4plants\ArcGraphModel\src\ArcGraphModel.IO\bin\Debug\netstandard2.0\ArcGraphModel.IO.dll" | ||
//#r @"C:/Users/olive/.nuget/packages/fsharpaux/1.1.0/lib/net5.0/FSharpAux.dll" | ||
//#r "src/ArcGraphModel/bin/Release/netstandard2.0/ArcGraphModel.dll" | ||
//#r "src/ControlledVocabulary/bin/Release/netstandard2.0/ControlledVocabulary.dll" | ||
|
||
#I "src/ControlledVocabulary/bin/Debug/netstandard2.0" | ||
#I "src/ControlledVocabulary/bin/Release/netstandard2.0" | ||
#r "ControlledVocabulary.dll" | ||
|
@@ -45,6 +19,36 @@ open ControlledVocabulary | |
open type ControlledVocabulary.ParamBase | ||
open ARCTokenization | ||
open ARCTokenization.StructuralOntology | ||
open System.IO | ||
|
||
|
||
let arcProt = @"C:\Repos\git.nfdi4plants.org\ArcPrototype" | ||
|
||
let afts = FileSystem.parseAbsoluteFilePaths arcProt | ||
afts |> Seq.iter (Param.getValueAsString >> printfn "%s") | ||
|
||
let tryParseMetadataSheetFromToken (isaFileName: string) (isaMdsParsingF: string -> IParam list) (absFileToken: IParam) = | ||
let cvpStr = Param.getValueAsString absFileToken | ||
printfn $"cvpStr: {cvpStr}" | ||
//if String.contains isaFileName cvpStr then | ||
if Path.GetFileName cvpStr = isaFileName then | ||
try | ||
Some (isaMdsParsingF cvpStr) | ||
with _ -> | ||
None | ||
else None | ||
|
||
afts | ||
|> Seq.map ( | ||
fun cvp -> | ||
printfn $"{Param.getValueAsString cvp}" | ||
tryParseMetadataSheetFromToken "isa.investigation.xlsx" (Investigation.parseMetadataSheetFromFile()) cvp | ||
) | ||
|> Seq.length | ||
|
||
let its = Investigation.parseMetadataSheetsFromTokens() afts | ||
|
||
|
||
|
||
|
||
let ot = List.head Terms.InvestigationMetadata.ontology.Terms | ||
|
@@ -129,7 +133,7 @@ let expectedTermValuesSimple = | |
[""] | ||
[""] | ||
[""] | ||
[""; "Maus"; "Keider"; "müller"; "oih"] | ||
[""; "Maus"; "Keider"; "müller"; "oih"] | ||
[""; "Oliver"; "andreas"] | ||
[""; "L. I."; "C."] | ||
[""; "[email protected]"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.