Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
* more export
Browse files Browse the repository at this point in the history
* rework import
* edit preferred names
* create Submodel instance
  • Loading branch information
festo-i40 committed Nov 5, 2023
1 parent c9a7ad4 commit 9213806
Show file tree
Hide file tree
Showing 6 changed files with 443 additions and 16 deletions.
14 changes: 4 additions & 10 deletions src/AasxCore.Samm2_2_0/SammClasses.cs
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,6 @@ public bool AddOrIgnore(string prefix, string uri)
if (input.StartsWith(mi.Uri))
{
var pf = mi.Prefix;
if (pf == ":")
pf = "this:";
return pf + input.Substring(mi.Uri.Length);
}

Expand Down Expand Up @@ -1115,12 +1113,8 @@ public IEnumerable<SammReference> DescendOnce()
// own
[SammPropertyUri("bamm:properties")]
[SammCollectionContentUri("bamm:property")]
public List<SammReference> Properties { get; set; }

public Entity()
{
Properties = new List<SammReference>();
}
public List<OptionalSammReference> Properties { get; set; }
= new List<OptionalSammReference>();
}

/// <summary>
Expand Down Expand Up @@ -1169,14 +1163,14 @@ public IEnumerable<SammReference> DescendOnce()
/// </summary>
[SammPropertyUri("bamm:events")]
[SammCollectionContentUri("bamm:event")]
public List<SammReference> Events { get; set; } = new List<SammReference>();
public List<OptionalSammReference> Events { get; set; } = new List<OptionalSammReference>();

/// <summary>
/// An Operation represents an action that can be triggered on the Aspect.
/// </summary>
[SammPropertyUri("bamm:operations")]
[SammCollectionContentUri("bamm:operation")]
public List<SammReference> Operations { get; set; } = new List<SammReference>();
public List<OptionalSammReference> Operations { get; set; } = new List<OptionalSammReference>();
}

public class Unit : ModelElement, ISammSelfDescription
Expand Down
3 changes: 2 additions & 1 deletion src/AasxPackageExplorer/debug.MIHO.script
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ Select("ConceptDescription", "First");
// Select("ConceptDescription", "Next");
// Select("ConceptDescription", "Next");
// Select("ConceptDescription", "Next");
Tool("sammaspectexport", "File", "C:\\HOMI\\Develop\\Aasx\\repo\\out.ttl");
// Tool("sammaspectexport", "File", "C:\\HOMI\\Develop\\Aasx\\repo\\out.ttl");
Tool("submodelinstancefromsammaspect");
Loading

0 comments on commit 9213806

Please sign in to comment.