Skip to content

Limitation in IF-MAP XML to Neo4J key/value mapping #1

Description

@ra0x0a

Limitation in IF-MAP XML to Neo4J key/value mapping

The mapping from incoming IF-MAP XML documents to the internal datamodel
with key/value pairs is lossy.
Javadoc quote from de.hshannover.f4.trust.visitmeta.dataservice.xml.SimpleKeyValueExtractor:

Extracts information from XML documents into a set of key/value pairs.
A SimpleKeyValueExtractor is only capable of extracting information
from "simple" XML documents. "Simple" means:
There is always only one XML element with the same name at the same level.
Bad:
<foo>
<bar>...</bar>
<bar>...</bar> <!-- duplicate element at the same level -->
</foo>

OK:
<foo>
<bar>...</bar>
</foo>

The current implementation only stores the value of the last element of a sequence of elements with the same tag-name at the same level.
Regarding standard metadata (for network security) this could be a problem with location metadata (may contain a sequence of location-information) and wlan-information metadata (may contain a sequence of ssid-unicast-security).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions