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

ADI model from Embedded example import fails #509 #526

Merged
merged 1 commit into from
Feb 14, 2021
Merged
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
6 changes: 3 additions & 3 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ To get more details visit the section [Internet of Things (IoT) Communication](.
The `SemanticData` folder contains projects related to support the [OOI Semantic-Data Processing Architecture](./SemanticData/README.MD). Processing of the OPC UA Data Outside of the Server context is based on the **Semantic-Data** concept. This project is aimed to workout deliverables supporting Process Data handling over Internet including but not limiting to:

- Data edition ֠UI allowing display and edition of any custom data
- Data serialization and deserialization - see white-paper [Address Space Interchange XML][CAS.InterchangeXML]
- Data serialization and deserialization - see white-paper [Address Space Interchange XML][InterchangeXML]
- Data prototyping - methods and tools to design custom data types
- Exposition of the process data in the context of metadata [OPC UA Address Space Model Designer](https://github.com/mpostol/ASMD)
- Browsing of the Metadata to selectively access requested Process Data
Expand All @@ -135,7 +135,7 @@ The `SemanticData` folder contains projects related to support the [OOI Semantic

#### Project `AddressSpaceComplianceTestTool`

It is a command-line application aimed at the validation of the XML files compliant with the [UANodeSet schema](https://opcfoundation.org/UA/2011/03/UANodeSet.xsd) defined in Part 6 of the OPC UA Specification. The description of this schema is captured by the document [Address Space Interchange XML][CAS.InterchangeXML]
It is a command-line application aimed at the validation of the XML files compliant with the [UANodeSet schema](https://opcfoundation.org/UA/2011/03/UANodeSet.xsd) defined in Part 6 of the OPC UA Specification. The description of this schema is captured by the document [Address Space Interchange XML][InterchangeXML]

#### Project `UANodeSetValidation`

Expand Down Expand Up @@ -246,7 +246,7 @@ The presented approach is a real proposal for a new technology wave based on the
[wordpress.OPCUAMTF]: https://mpostol.wordpress.com/2013/08/04/opc-unified-architecture-main-technological-features/
[ASMD]:https://github.com/mpostol/ASMD
[DDSupport]:SemanticData/DesignDeploymentSupport.md
[CAS.InterchangeXML]: https://www.researchgate.net/publication/334259707_OPC_UA_Address_Space_Interchange_XML
[InterchangeXML]: https://www.researchgate.net/publication/334259707_OPC_UA_Address_Space_Interchange_XML
[commserver]: http://www.commsvr.com/
[migration2os]: https://github.com/commsvr-com/migration2os
[migration2osProj]: https://github.com/orgs/commsvr-com/projects
Expand Down
4 changes: 4 additions & 0 deletions REFERENCES.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@

[migration2os]:https://github.com/commsvr-com/migration2os

- [Postół M. (2016) OPC UA Address Space Interchange XML; Technical Report; DOI: 10.13140/RG.2.2.12228.37768][InterchangeXML]

[InterchangeXML]: https://www.researchgate.net/publication/334259707_OPC_UA_Address_Space_Interchange_XML

<!--wordpress-->

- [OPC Unified Architecture][wordpress.opc-ua]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ public void eoursel510Test()
//Extensions is omitted during the import
Assert.AreEqual<int>(10, _trace.Where<TraceMessage>(x => x.BuildError.Focus == Focus.Diagnostic).Count<TraceMessage>());
Assert.AreEqual<int>(1, _trace.Where<TraceMessage>(x => x.BuildError.Focus == Focus.XML).Count<TraceMessage>());
//TODO Normalize representation of URI #524
_as.ValidateAndExportModel(model);
Assert.AreEqual<int>(13, _trace.Where<TraceMessage>(x => x.BuildError.Focus == Focus.Diagnostic).Count<TraceMessage>());
Assert.AreEqual<int>(1, _trace.Where<TraceMessage>(x => x.BuildError.Focus == Focus.XML).Count<TraceMessage>());
Expand Down
12 changes: 0 additions & 12 deletions SemanticData/UANodeSetValidation/AddressSpaceContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ Uri IAddressSpaceContext.ImportUANodeSet(FileInfo model)
/// </summary>
void IAddressSpaceContext.ValidateAndExportModel()
{
//TODO ADI model from Embedded example import fails #509
foreach (IModelTableEntry _nsi in m_NamespaceTable.Models)
{
int indes = m_NamespaceTable.GetURIIndex(_nsi.ModelUri);
Expand All @@ -124,17 +123,6 @@ void IAddressSpaceContext.ValidateAndExportModel(Uri targetNamespace)

#region IAddressSpaceURIRecalculate

//TODO IModelTableEntry must be updated during import. #523
///// <summary>
///// Gets the index or append.
///// </summary>
///// <param name="value">The value.</param>
///// <returns>System.UInt16.</returns>
//ushort IAddressSpaceURIRecalculate.GetIndexOrAppend(string value)
//{
// return m_NamespaceTable.GetURIIndexOrAppend(value);
//}

#endregion IAddressSpaceURIRecalculate

#region IAddressSpaceBuildContext
Expand Down