Skip to content

Commit

Permalink
owl generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jsboige committed Feb 14, 2024
1 parent 687a760 commit cf1914e
Show file tree
Hide file tree
Showing 11 changed files with 9,547 additions and 1,730 deletions.
3,082 changes: 1,544 additions & 1,538 deletions Cards/Fallacies/Argumentum Fallacies - Taxonomy.csv

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
<PackageReference Include="Betalgo.OpenAI.Utilities" Version="7.0.3" />
<PackageReference Include="CsvHelper" Version="30.0.1" />
<PackageReference Include="ExtendedXmlSerializer" Version="3.7.11" />
<PackageReference Include="Humanizer" Version="2.14.1" />
<PackageReference Include="Magick.NET-Q16-AnyCPU" Version="13.5.0" />
<PackageReference Include="Microsoft.Playwright" Version="1.40.0" />
<PackageReference Include="Microsoft.XmlSerializer.Generator" Version="8.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="OWLSharp" Version="3.10.2" />
<PackageReference Include="QuestPDF" Version="2023.12.0" />
<PackageReference Include="SharpToken" Version="1.2.12" />
<PackageReference Include="Spectre.Console" Version="0.48.1-preview.0.5" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using Argumentum.AssetConverter.Dnn2sxc;
using Argumentum.AssetConverter.Entities;
using Argumentum.AssetConverter.Mindmapper;
using Argumentum.AssetConverter.Ontology;
using Spectre.Console;
using Spectre.Console.Json;
using Utf8Json;
Expand All @@ -24,9 +25,9 @@ public class AssetConverterConfig



public bool SkipConfigFile { get; set; } = true;
public bool SkipConfigFile { get; set; } = false;

public ConverterMode Mode { get; set; } = ConverterMode.Mindmapper;// | ConverterMode.WebBasedImageGeneration;
public ConverterMode Mode { get; set; } = ConverterMode.OwlGenerator;// | ConverterMode.WebBasedImageGeneration;

public bool ForceDebugParams { get; set; }

Expand Down Expand Up @@ -265,8 +266,12 @@ public class AssetConverterConfig

public MindMapCreatorConfig MindMapCreatorConfig { get; set; } = new MindMapCreatorConfig();


public Dnn2sxcConfig Dnn2sxcConfig { get; set; } = new Dnn2sxcConfig();


public OwlGeneratorConfig OwlGeneratorConfig { get; set; } = new OwlGeneratorConfig();

public string DocumentsDirectoryName { get; set; } = @"Documents\";


Expand Down Expand Up @@ -407,6 +412,11 @@ public async Task<bool> Apply()

}

if (Mode.HasFlag(ConverterMode.OwlGenerator))
{
tasks.Add(OwlGeneratorConfig.Apply(this));
}


await Task.WhenAll(tasks);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ public enum ConverterMode
Mindmapper = 1 << 2, // 4
Dnn2sxc = 1 << 3, // 8
DatasetUpdater = 1 << 4, // 16
OwlGenerator = 1 << 5, // 32
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,16 @@ public string GetId()
public string SvgColor { get; set; }
public string SvgIllustration { get; set; }

public int? PrintAndPlay { get; set; }
public string AIFSkosDirectRef { get; set; }

public string AIFSkosExceptionRef { get; set; }

public string AIFSkosOther { get; set; }

public string AIFSkosMappingType { get; set; }


public int? PrintAndPlay { get; set; }

public string DécimalPathPadded { get; set; }

Expand Down Expand Up @@ -176,12 +185,18 @@ public FallacyClassMap()
Map(m => m.Image).Name("image");
Map(m => m.SvgColor).Name("svg_color");
Map(m => m.SvgIllustration).Name("svg_illustration");
Map(m => m.PrintAndPlay).Name("print_and_play");
Map(m => m.AIFSkosDirectRef).Name("AIF_skosDirectRef");
Map(m => m.AIFSkosExceptionRef).Name("AIF_skosExceptionRef");
Map(m => m.AIFSkosOther).Name("AIF_skosOther");
Map(m => m.AIFSkosMappingType).Name("AIF_skosMappingType");
Map(m => m.PrintAndPlay).Name("print_and_play");
Map(m => m.DécimalPathPadded).Name("decimal_path_padded");
Map(m => m.DepthMax4).Name("depth_max4");
}
}






}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Argumentum.AssetConverter.Entities;

namespace Argumentum.AssetConverter;

public abstract class FallacyDocumentConfigBase : DocumentConfig
{
public string DataSet { get; set; } = @"..\..\..\Data\Mindmap\Argumentum Fallacies - Taxonomy.csv";

public abstract Task GenerateFallacyFile(IList<Fallacy> fallacies, AssetConverterConfig config,
string targetDirectory, string language);

}
Loading

0 comments on commit cf1914e

Please sign in to comment.