Next Article in Journal
Analytical Calculation of Air-Gap Magnetic Field Distribution in IPMSMs with Mixed Eccentricity Accounting for Bridge Saturation
Next Article in Special Issue
Number of Lines of Image Reconstructed from a Revealing Emission Signal as an Important Parameter of Rasterization and Coherent Summation Processes
Previous Article in Journal
Research on Dynamic Reserve and Energy Arbitrage of Energy Storage System
Previous Article in Special Issue
Measurements and Correctness Criteria for Determining the Line Length of the Data Image Obtained in the Process of Electromagnetic Infiltration
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Metrics-Based Comparison of OWL and XML for Representing and Querying Cognitive Radio Capabilities

1
Google, Inc., 1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA
2
Department of Electrical and Computer Engineering, Northeastern University, Boston, MA 02115, USA
3
VIStology, Inc., Framingham, MA 01701, USA
*
Author to whom correspondence should be addressed.
Appl. Sci. 2022, 12(23), 11946; https://doi.org/10.3390/app122311946
Submission received: 1 October 2022 / Revised: 16 November 2022 / Accepted: 18 November 2022 / Published: 23 November 2022
(This article belongs to the Special Issue Wireless Communication: Applications, Security and Reliability)

Abstract

:
Collaborative spectrum access requires wireless devices to perform spectrum-related tasks (such as sensing) on request from other nodes. Thus, while joining the network, they need to inform neighboring devices and/or the central coordinator of their capabilities. During the operational phase, nodes may request other permissions from the the controller, like the opportunity to transmit according to the current policies and spectrum availability. To achieve such coordinated behavior, all associated devices within the network need a language for describing radio capabilities, requests, scenarios, policies, and spectrum availability. In this paper, we present a thorough comparison of the use of two candidate languages—Web Ontology Language (OWL) and eXtensible Markup Language (XML)—for such purposes. Towards this goal, we propose an evaluation method for automating quantitative comparisons with metrics such as precision, recall, device registration, and the query response time. The requests are expressed in both SPARQL Protocol and RDF Query Language (SPARQL) and XML Query Language (XQuery), whereas the device capabilities are expressed in both OWL and XML. The evaluation results demonstrate the advantages of using OWL semantics to improve the quality of matching results over XML. We also discuss how the evaluation method can be applicable to other scenarios where knowledge, datasets, and queries require richer expressiveness and semantics.

1. Introduction

1.1. Problem Scenario Descriptions

A wireless network of reconfigurable software-defined radios (SDRs) can be considered a distributed computing system, as these SDRs possess the ability to perform various sensing and computation tasks requested by applications running on other similar nodes. For this high level of coordination, SDRs (these intelligent SDRs are referred to as ‘cognitive radios’, or simply as ‘radios’ henceforth) need to perform various simple to complex functions. Thus, they need to determine how specific capabilities may best address the issued queries, e.g., individual radios may need to inform the network controller of their capabilities, and applications may issue requests for services and the controller then can match the radio capabilities against the requests. Following this, a subset of radios can be invoked to perform the requested services. Similarly, radios may request permission to transmit, and such requests then need to be matched against policies and available resources (e.g., availability of the spectrum). In all such scenarios, the requests need to be compared with the radio capabilities in order to decide which devices can satisfy a specific request.
Figure 1 shows a Unified Modeling Language (UML) diagram for some sample use-case scenarios. ‘Device’ and ‘Application’ are two actors who participate in the use cases of the system running on the network. A device registers its capabilities to the network, as indicated by Register Device use case. After registering devices to the controller, whenever the latter receives a request by a device or an application for a service, it processes the request and then returns the results of the processing back to the requester. This functionality is captured by the Request Service, which includes the Process Service use case denoted by the dotted arrow from Request Service to Process Service. This arrow is annotated by the <<include>> label which, in UML terminology, implies that the use case at the tail end of the dotted arrow completely reuses all of the steps included for that case [1]. We can also observe from the figure that there are some special types of Register Device and Request Service use cases expressed by the inheritance relation, with the generalization arrow pointing to the more general use case from the more specific use case. This indicates that more than one language can be used to express device capabilities and application requests.
Since both requests and device capabilities need to be formulated in a language that all devices understand, the main contribution of this paper is to identify a language that can describe the requests and radio capabilities. Such a language must be interpretable by devices, applications, and networks and it must have sufficient expressiveness to deal with various scenarios, requests, and device descriptions. The language must have precise semantics so that the meaning of the requests is precise and the devices can derive sound and complete results in response to the requests. Finally, the meaning of the returned results should be understandable by the requesters.

1.2. Approach

While we considered different candidate options, we advocate for the use of Web Ontology Language (OWL) [2] in this paper. OWL is a formal language (with formal syntax and formal semantics) designed to represent rich and complex knowledge about things, groups of things, and relations between things.
Though there are many advantages of using the semantics of the OWL language for representing and querying radio capabilities, it also comes with a price. For instance, there are time and space costs for deriving inferred facts with inference rules processed by an inference engine. When data need to be manipulated often, the inference engine should run every time a change is made to the data. We comprehensively explored the pros and cons of OWL versus eXtensible Markup Language (XML) [3] based schemas that match device descriptions against application requests in a quantitative way. While it is clear that OWL captures the semantics, the real question is how much the use of OWL semantics is advntageous for a specific application, versus an application that uses just XML. For this, we propose a metrics-based evaluation method to compare the two approaches. We performed experiments with the proposed method to prove the feasibility and correctness of the approach. To ensure that the evaluation results reflect practical concerns, our investigation was guided by the following principles:
  • The comparison must be reasonably fair. Knowledge, datasets, and queries used to evaluate each of the two approaches must be comparable (equivalent).
  • The samples of knowledge, data, and queries used in the experiment should provide good coverage of the space of knowledge, device descriptions, and query properties. Test samples should be highly diversified and representative of the whole tested space of devices and queries.
  • The method must have access to the ground truth of each application request for the purpose of computing evaluation metrics.
  • The same metrics should be used to evaluate the results of each of the two approaches.
  • The evaluation must be scalable and extensible. The evaluation should not only be capable of dealing with different sizes of datasets and queries but should also be extensible for any updates with respect to the knowledge base, data, queries, and metrics.

1.3. Contributions and Paper Organization

The main contributions made in this paper include the following:
  • We propose a method for evaluating the use of OWL-based and XML-based approaches to represent and query cognitive radio capabilities with quantitative metrics.
  • We justify how the method satisfies all of the evaluation principles and why the techniques used in the method are a good fit to our problem.
  • We analyze the evaluation results and provide recommendations for the selection of the best approach depending on the scenario.
The remainder of this paper is structured as follows: Section 2 summarizes related work, and Section 3 presents the reasons for choosing XML and OWL as the two candidate languages that we probe deeper into in the rest of the paper. Section 4 conceptualizes and formulates the problem. The evaluation method, results, and analysis are presented in detail in Section 5, followed by the justification of the method against satisfaction of the evaluation principles in Section 6. Section 7 concludes the paper.

2. Related Work

To the best of our knowledge, we are the first group to propose a comprehensive and quantitative assessment method for the comparison of the use of OWL and XML for modeling the Radio Frequency (RF) domain. The most closely related efforts address only portions of the entire problem, which we classified into the following categories: (1) automatic device description generation, (2) automatic device capabilities query generation, (3) data transformation between the Resource Description Framework (RDF) [4,5]/OWL and XML, and (4) query transformation between the SPARQL Protocol and RDF Query Language (SPARQL) [6] and XML Query Language (XQuery) [7]. Since the first two categories are fully addressed in [8,9], this section is focused entirely on the latter two.

2.1. Data Transformation between RDF/OWL and XML

The related work in this category, further classified into three groups, (1) XML to RDF/OWL, (2) RDF/OWL to XML, and (3) bidirectional transformation, is summarized in Table 1. The values in the second column indicate the types of support used for the schema transformation with the lack of such support being indicated by “N/A”.
In the first group (XML to RDF/OWL), the methods that fully automate the transformation typically rely on predefined, generic mapping rules that are encoded as XSLT stylesheets [30]. While the research presented in [10,11,12,15,16,23] relies on mappings developed at the schema level, in [17], mapping is defined at the data level. These transformations retain the original structure of the input XML, yielding RDF/OWL data that usually do not properly convey the intended semantics. Other methods in this group require either additional input or some form of user interaction. In [13,14], a graphical interface is relied on by the users to define the schema mapping rules, and this produces an XSLT for automatic data transformation. In [18], a mechanism for extracting RDF/OWL data from XML is defined. This involves declaring that XML data are compatible with RDF/OWL via linking to algorithms (typically XSLT). In [20,21], XML data are transformed to RDF by performing a depth-first search traversal of the XML tree. In addition to the XML data, in [19], ontology and a schema are required for ontology mapping by the user. In [22], user-provided mapping expressed in a domain-specific mapping language is employed.
For the second group (RDF/OWL to XML), in [24], an extension to the XSLT function set was proposed. This allows SPARQL queries to be embedded into XSLT which, in turn, provides a new platform for scripting and transforming RDF into XML.
For the third group (bidirectional), in [25], the transformation is provided based on the XML schema, and in [26], the RDF-based Semantic Mediation approach is used. In [27], mechanisms are provided for annotating XML schema elements (especially within WSDL definitions) that can be leveraged for automatic and bidirectional transformation. In [28,29], XSPARQL, a combination of XQuery and SPARQL with one language first extracting the native input data through queries and the other used for transformation to the target language through update statements, is defined.
The bidirectional methods are the most relevant to the work described in this paper, since they may better satisfy the fairness principle of the evaluation method (Section 1.2). However, in our work, instead of transforming between the two languages, we relied on the XML-based serialization of RDF/OWL, which can be treated as XML and RDF/OWL at the same time (Section 6).

2.2. Query Transformation between SPARQL and XQuery

In [31], a method is presented for providing SPARQL endpoints over XML data by integrating a schema into the ontology transformation component and automatically translating SPARQL queries to XQuery. This method is limited to queries that do not include OWL individuals, since the translation operates at the ontology/schema level only. In [32,33], a method for the complete and correct translation of SPARQL to XQuery isdescribed without any assumptions made about the schema or particular workload. Full implementation of the method (xql2xquery) is publicly available, and because of its good coverage of the SPARQL query features, it was adopted within the evaluation processes described in this paper.

3. Motivation for OWL vs. XML

There are many languages that could satisfy the requirements outlined in the previous section. This section discusses the motivation behind the selection of the two approaches evaluated in this paper.
First, we were interested in evaluating how the semantics affects the performance with respect to data modeling and the querying of cognitive radio capabilities. Since OWL has computer processable semantics (i.e., it belongs to a group of formal languages—languages with formal syntax and formal semantics) [34], the consistency of device descriptions represented in OWL can be checked first. Then, new facts can be derived from a given set of facts using the inference rules executed by an inference engine. The derived facts are guaranteed to be consistent with the knowledge base, i.e., its derivation process is sound. In contrast, other languages such as XML Schema Definition Language (XSD) [35,36]/XML or relation/tuple are either semi-structured or structured and do not have much of the semantic richness, require all facts about devices to be explicitly expressed, and cannot generate inferred facts without dedicated software. Therefore, the OWL-based approach was chosen as a baseline that plays a significant role in the matching process, especially in establishing the query ground truth for the evaluation of the quality of the matching results.
Second, we considered the XML-based approach rather than other approaches, such as the relational table approach, since the former better addresses the language requirements defined by the use cases described in Section 1.1. XML is more flexible than the relational table approach with respect to the updating of the structure of data. Whenever there is a need to update the structure of the data, it is much easier to make changes to the XML data than to a relational table, since the latter would require a change in the relational database schema, which would have to be followed by the restructuring of the whole database. Additionally, XML data are self-describing, while relational data are not [37]. An XML document contains not only the data, but also a tagging for the data that represent what it is [37]. With the relational model, the content of the data is defined by its column definition [37]. All data in a column must have the same type of data [37]. The flexibility feature is very critical in our problem, since the data representation language for our use cases should be flexible enough to deal with various data updates, especially for cases where devices with new types or capabilities are registered with the system. Therefore, in this paper, we only considered OWL-based and XML-based approaches as being appropriate to address the problem.
Each of these two approaches uses other languages for representing data and queries. The languages used in the two approaches are listed in Table 2. They are categorized into three levels [38]: (a) languages for modeling background knowledge (the schema level); (b) languages for representing device descriptions (the data level); and (c) languages for requests for services (the query level).

3.1. Web Ontology Language (OWL)

OWL descriptions can be viewed as consisting of two parts—descriptions of the concepts and then facts that are instances of these concepts. Concepts are analogous to database schema, while instances are analogous to tuples in database tables. The concepts are expressed in OWL, while the instances are expressed as RDF triples. OWL representations are called ontologies. The term ontology emerges from artificial intelligence and conveys the syntax and semantics of concepts and their relationships in a formal, declarative, and computer-understandable way [39]. An ontology for a radio communication domain serves as the base for representing device descriptions. Data are stored in, and retrieved as, triples in an RDF store, also called a triple store. Application requests are expressed in SPARQL. SPARQL is a set of specifications that provide languages and protocols to query and manipulate RDF graph content on the Web or in an RDF store [6]. Due to the fact that OWL has formal semantics, the data annotated in OWL can be processed by any inference engine (or reasoner) that conforms with the OWL semantics to derive the facts that are implicitly contained by the explicitly encoded facts. Thus querying is applied to the extended set of facts after the inference step.

3.2. eXtensible Markup Language (XML)

The second approach is to use the XML-based technology, i.e., use XSD as a base for expressing types and then use XML to describe instance XML data about the environment and the resources. There are two main approaches to the storage of XML documents—as an XML enabled database or as a native XML database. The former is a relational database that transfers data between XML documents and tuples, whereas the latter stores XML data directly [40]. Device descriptions can be represented in XML. They can be queried, transformed, exported, and returned to application requests expressed in XQuery—the “native” query language for XML. Application requests represented as XQuery queries are processed by the XQuery processor which matches XML data against the query and returns the matching results.

4. Problem Formulation

We conceptualize and formalize the problem in this section. Our objective was to derive metrics for the matching of the descriptions of device capabilities against requests for their services for the two approaches and provide recommendations on the usability of the two approaches in the RF domain based on these metrics.
Figure 2 is a data flow diagram that represents the evaluation process at a high level. As shown in this figure, a set of device descriptions (and their capabilities) is generated and represented in the respective data representation languages, i.e., XML in the XML-based approach and RDF/OWL in the OWL-based approach. The descriptions of device capabilities are stored in respective datastores. Requests for device capabilities are generated and expressed in two query languages—XQuery in the XML-based approach and SPARQL in the OWL-based approach. The requests represented in the respective query languages are forwarded to the appropriate matchers for matching of the device capabilities against the requests. The matching results of each query expression returned from the matchers are then evaluated by comparing with the ground truth of the matching devices against the query, and metrics are computed.

4.1. Problem Formalization

4.1.1. Notations

For the purpose of formalizing the problem, the following notations are introduced.
  • D = { D 1 , D 2 , , D n } —set of n devices
  • D x m l = { D 1 x m l , D 2 x m l , , D n x m l } —set of n descriptions of device capabilities represented in XML
  • B = { B 0 , B 1 , , B k } -set of k + 1 knowledge representations of D in OWL, where B 0 B is the most complete representation and B i { B 1 , , B k } , 1 i k are progressively less complete representations s.t. each B i does not include at least one type of OWL 2 RL axiom with respect to B i 1
  • D o w l = { D 1 o w l , D 2 o w l , , D n o w l } —set of n descriptions of device capabilities from D in RDF/OWL
  • Q = { Q 1 , Q 2 , , Q m } —set of m requests (queries) against device capabilities from D
  • Q x m l = { Q 1 x m l , Q 2 x m l , , Q m x m l } —set of m requests expressed in XQuery
  • Q o w l = { Q 1 o w l , Q 2 o w l , , Q m o w l } —set of m requests expressed in SPARQL
  • f x m l —function that takes a set of device descriptions and a query in XML and returns a set of devices that match the query:
    f x m l : ( 2 D x m l , Q x m l ) 2 D
  • f o w l —function that takes a set of device descriptions, a background knowledge representation and a query in OWL and returns a set of devices that match the query):
    f o w l : ( 2 D o w l , B , Q o w l ) 2 D
  • g x m l —ground truth function that takes a set of device descriptions and a query in XML and returns a set of devices that the query is expected to return:
    g x m l : ( 2 D x m l , Q x m l ) 2 D
  • g o w l —function that takes a set of device descriptions and a query in OWL and returns a set of devices that the query is expected to return:
    g o w l : ( 2 D o w l , Q o w l ) 2 D
  • m x m l —function that compares two functions, a query function and a ground truth function in XML, and returns the value of the metric from [0, 1]:
    m x m l : ( f x m l ( 2 D x m l , Q x m l ) , g x m l ( 2 D x m l , Q x m l ) ) [ 0 , 1 ]
  • m o w l —function that compares two functions, a query function and a ground truth function in OWL, and returns the value of the metric from [0, 1]:
    m o w l : ( f o w l ( 2 D o w l , B , Q o w l ) , g o w l ( 2 D o w l , Q o w l ) ) [ 0 , 1 ]
The metrics m x m l and m o w l introduced above are just patterns used for defining concrete metrics. The concrete metrics formalization and definitions are presented in Section 4.2.

4.1.2. Examples

To illustrate the relations between devices/queries and their representations in the two approaches with the presented notations, we provide two examples. One is a device with its configuration and its representations in the two approaches. The other is a query example in natural language as well as its representations in the respective query languages of the two approaches.
A Device Description Example: An example of the device D i D named device_instance is described in Table 3. The rows show the parameters of this device.
Listing ( D i x m l D x m l ) and Listing ( D i o w l D o w l ) show this device represented in XML and OWL, respectively. In this example, the device name “device_instance” is mapped as an XML attribute in XML, whereas an OWL individual is mapped in OWL.
Listing 1. Device description example in XML.
  •   <SupportsSpectrumSensing>
  •     <Bandwidth units="kHz">200<Bandwidth>
  •     <FrequencyRange>
  •       <Min units="MHz">80</Min>
  •       <Max units="MHz">120</Max>
  •     </FrequencyRange>
  •     <SensingTime units="Second">1.0</SensingTime>
  •   </SupportsSpectrumSensing>
  •   <SupportsTransmitting>
  •     <MaxOutputPower units="Watt">0.01</MaxOutputPower>
  •   </SupportsTransmitting>
  • </USRP_N200>
A Query Representation Example: Consider the following query expressed in natural language: “Show all RF devices of the USRP network series whose maximum output power is no more than 1.0 Watt.” Listing 3 ( Q i x m l Q x m l ) and Listing 4 ( Q i o w l Q o w l ) represent this query in XQuery and SPARQL, respectively.
Listing 2. OWL device description example in Turtle syntax.
  • device_instance a USRP_N200;
  •   hasCapability spectrumSensing, transmitting.
  • spectrumSensing a SpectrumSensing;
  •  hasBandwidth [hasValue [hasDataValue 200; hasUoM kHz ]];
  •  hasFrequencyRange [
  •   hasMin [hasValue [hasDataValue 80; hasUoM MHz]];
  •   hasMax [hasValue [hasDataValue 120; hasUoM MHz]]];
  •  hasSensingTime [hasValue [hasDataValue 1.0; hasUoM Second]].
  • transmitting hasMaxOutputPower [
  •  hasValue [hasDataValue 0.01; hasUoM Watt]].
Listing 3. An example of request representation in XQuery.
  • for $device in doc("devices.xml")/USRP_Nxxx
  • where $device/SupportsTransmitting/@units = "Watt"
  • and $device/SupportsTransmitting[MaxOutputPower<=1.0]
  • return data($device/@name)
An OWL Inference Example: The device example presented in Listings 1 and 2 does not match the query example shown in Listings 3 and 4. The issue here is that the device is described as USRP_N200, while the query is asking for USRP_Nxxx. While a human might know that USRP_N200 is a subtype of USRP_Nxxx, a query processor would not be able to match this request with the USRP_N200 device. However, if background knowledge B i B includes triple (USRP_N200 rdfs:subClassOf USRP_Nxxx), an inference engine that supports OWL 2 RL will be able to infer that (device_instance a USRP_Nxxx). The net result is then that a query engine that has support from an OWL reasoner will return a match. While this is a very simple example of the usability of OWL reasoning in the process of matching descriptions versus queries, the ontology may have many axioms about the specific types of devices, and thus the number of inferences can be quite large.

4.2. Metrics Formulation

The evaluation metrics whose signatures were defined in Section 4.1.1 are divided into two groups—query result quality metrics and query process performance metrics. The former includes the query result completeness, query result soundness, and a combined metric of the two, named F-Measure [41]. The latter contains the query response time and the load time metrics. Since all of the metrics require knowledge of the ground truth, the query ground truth function is introduced first. Since our objective was to assess the value of automatic inference provided by OWL, we used the results returned by an OWL inference engine for the strongest ontology that we had, B 0 , as the ground truth. This approach is justified by the fact that OWL is a formal language and because OWL reasoners are sound, i.e., they return only the true results, which will be as good as the ontology. Equation (7) shows how the ground truth is defined in terms of f o w l ( D o w l , B 0 , Q i o w l ) implemented by the OWL-based matcher described in Section 5.2.
g x m l ( D x m l , Q i x m l ) = g o w l ( D o w l , Q i o w l ) = f o w l ( D o w l , B 0 , Q i o w l )
Listing 4. An example of a request representation in SPARQL.
  • SELECT DISTINCT ?device
  • WHERE {
  •     ?device a USRP_Nxxx; hasCapability [hasMaxOutputPower [
  •       hasValue [hasDataValue ?dataValue; hasUoM Watt]]]
  •     FILTER (?dataValue <= "1.0"^^xsd:double)
  • }

4.2.1. Quality Metrics

The query result completeness metric, referred to as the recall metric in information retrieval, measures the degree of how many of the expected results are returned by a query. The XML-based metric, m c x m l , and the OWL-based metric, m c o w l , are defined in (8) and (9), respectively.
The query result soundness metric measures the degree of how many query results returned are as expected out of all the returned results. In information retrieval, this metric is called the precision metric. The XML-based metric, m s x m l , and the OWL-based metric, m s o w l , are defined in (10) and (11), respectively.
The F-Measure [42] is a combined metric that measures the trade-off between the completeness and the soundness of the query results. The XML-based and OWL-based definitions of this metric are shown in (12) and (13), respectively. In (12), m c x m l ( ) is short for m c x m l ( f x m l ( D x m l , Q i x m l ) , g x m l ( D x m l , Q i x m l ) ) introduced in (8), m s x m l ( ) is short for m s x m l ( f x m l ( D x m l , Q i x m l ) , g x m l ( D x m l , Q i x m l ) ) introduced in (10). In (13), m c o w l ( ) is short for m c o w l ( f o w l ( D o w l , B j , Q i o w l ) , g o w l ( D o w l , Q i o w l ) ) introduced in (9), m s o w l ( ) is short for m s o w l ( f o w l ( D o w l , B j , Q i o w l ) , g o w l ( D o w l , Q i o w l ) ) introduced in (11). In both equations, β [ 0 , ] is a parameter that controls the balance between precision and recall [42]. In this paper, β was set to 1 since we equally weighed the importance levels of precision and recall.
m c x m l ( f x m l ( D x m l , Q i x m l ) , g x m l ( D x m l , Q i x m l ) ) = { | f x m l ( D x m l , Q i x m l ) g x m l ( D x m l , Q i x m l ) | | g x m l ( D x m l , Q i x m l ) | , if g x m l ( D x m l , Q i x m l ) 1 , if g x m l ( D x m l , Q i x m l ) = f x m l ( D x m l , Q i x m l ) = 0 , Others
m c o w l ( f o w l ( D o w l , B j , Q i o w l ) , g o w l ( D o w l , Q i o w l ) ) = { | f o w l ( D o w l , B j , Q i o w l ) g o w l ( D o w l , Q i o w l ) | | g o w l ( D o w l , Q i o w l ) | , if g o w l ( D o w l , Q i o w l ) 1 , if g o w l ( D o w l , Q i o w l ) = f o w l ( D o w l , B j , Q i o w l ) = 0 , Others
m s x m l ( f x m l ( D x m l , Q i x m l ) , g x m l ( D x m l , Q i x m l ) ) = { | f x m l ( D x m l , Q i x m l ) g x m l ( D x m l , Q i x m l ) | | f x m l ( D x m l , Q i x m l ) | , if f x m l ( D x m l , Q i x m l ) 1 , if f x m l ( D x m l , Q i x m l ) = g x m l ( D x m l , Q i x m l ) = 0 , Others
m s o w l ( f o w l ( D o w l , B j , Q i o w l ) , g o w l ( D o w l , Q i o w l ) ) = { | f o w l ( D o w l , B j , Q i o w l ) g o w l ( D o w l , Q i o w l ) | | f o w l ( D o w l , B j , Q i o w l ) | , if f o w l ( D o w l , B j , Q i o w l ) 1 , if f o w l ( D o w l , B j , Q i o w l ) = g o w l ( D o w l , Q i o w l ) = 0 , Others
m f x m l ( m c x m l ( ) , m s x m l ( ) ) = { ( β 2 + 1 ) · m c x m l ( ) · m s x m l ( ) β 2 · m c x m l ( ) + m s x m l ( ) , if m c x m l ( ) 0 m f x m l ( ) 0 0 , if m c x m l ( ) = m f x m l ( ) = 0
m f o w l ( m c o w l ( ) , m s o w l ( ) ) = { ( β 2 + 1 ) · m c o w l ( ) · m s o w l ( ) β 2 · m c o w l ( ) + m s o w l ( ) , if m c o w l ( ) 0 m f o w l ( ) 0 0 , if m c o w l ( ) = m f o w l ( ) = 0

4.2.2. Performance Metrics

The device registration time is the time taken for the registration of specified devices with repositories. Note that, in the OWL-based approach, besides the time taken for storing descriptions of the capabilities of the devices, the device registration time also includes the time for reasoning against both the device descriptions and the background knowledge for deriving inferred facts. There are two kinds of characteristics that will be collected using this metric. The first is the device registration time for the two approaches with specified test background knowledge representations B i B , 1 i k versus an increasing number of devices. The second is the device registration time for a specified number of devices in the OWL-based approach versus the test background knowledge representations { B 1 , B 2 , , B k } . The objective of collecting these metrics is to compare the device registration times in the two approaches against the increasing number of devices and to show how the registration time of the specified devices varies with as the completeness of the background knowledge increases in the OWL-based approach.
For each query, the query response time is the processing time of the query required by the query processor of the system. We compared the average query response times of a specified number of queries in the two approaches with a specified test background knowledge representation B i B , 1 i k versus an increasing number of devices. Additionally, we compared the average query response time of a specified number of queries against a specified number of devices versus the test background knowledge representations { B 1 , B 2 , , B k } in the OWL-based approach.

5. Evaluation

In order to provide a comprehensive evaluation of the two approaches, a large pool of descriptions of radio capabilities and a wide variety of request types (queries) against the device descriptions in the languages of the two approaches are needed. Theoretically, such an investigation could be carried out experimentally using real radios and real queries or at least using data and queries collected from real radio networks. Unfortunately, these kinds of data and queries are not readily available for various reasons, primarily due to the privacy and security concerns. Thus, the only practical solution is to use synthetic data and queries instead. As a consequence, the method utilizes synthetic device descriptions and query expressions generated (randomly) by the components (RODG [8] and SQG [9]) that we developed.

5.1. Evaluation Process

A high-level representation of the evaluation process is shown in Figure 2. This section describes the evaluation process in more detail. Figure 3 shows the concrete data flow in the evaluation process with the notations introduced in Section 4.1. Knowledge about a set of devices D is modeled as the most complete ontology B 0 . The method first automatically generates device descriptions in RDF/XML [43] from B 0 using RODG. Since RDF/XML constitutes a base for OWL, while at the same time its syntax is XML, the device descriptions in RDF/XML can serve as data representations of D for both the OWL-and XML-based approaches denoted by D o w l and D x m l , respectively. Next, the method generates query expressions, Q o w l and Q x m l , and requests about device capabilities for the two approaches. This is achieved through two procedures. First, the method automatically generates a set of random SPARQL queries as Q o w l from B 0 and D o w l using SQG. Then, the set of XQuery queries Q x m l is obtained by converting a SPARQL query Q o w l into an equivalent XQuery query in Q x m l using the open source component named xql2xquery [32,33].
The queries are then submitted to the “matchers”. The method uses DeVISor as the OWL-based matcher and BaseX as the XML-based matcher. The matchers include device registration. Note that, in the OWL-based approach, apart from the device descriptions, a background knowledge test ( B i B , 1 i k ) needs to be loaded into the OWL-based matcher (DeVISor) to derive inferred facts. Then, the processing of each query is executed for both approaches by the implemented query functions f o w l and f x m l .
The matching results of each query expression returned from the matchers are evaluated by comparing them with the ground truth of the matching devices against the query. This is achieved by implementing all metric functions of the two approaches ( m x m l and m o w l ). The implementation of the metric functions is shown in Algorithms 1–3. Additionally, the method collects metrics on the performance during the matching process. Finally, the metric values are derived and stored in an external file for further analysis.
Algorithm 1: CALC-RECALL( D m , D g ).
Applsci 12 11946 i001
Algorithm 2: CALC-PRECISION( D m , D g ).
Applsci 12 11946 i002
Algorithm 3: CALC-F-MEASURE( m s , m c ).
Applsci 12 11946 i003
Some more details about the implementation of the evaluation process are presented in the next section.

5.2. OWL-Based Matcher—DeVISor

DeVISor [44] is a semantic matcher used in the OWL-based approach that is able to run on the network as a service and infer which devices are capable of satisfying a given request based on knowledge of the devices. Figure 4 presents the architecture of DeVISor. It is implemented as a web service and extended to support SPARQL. The design follows client–server architecture. On the client side, the DeVISor client provides an Application Programming Interface (API) to interact with application requests, and device descriptions needed to be registered. On the server side (shown in the rectangle with dashed line), it controls the process of the device (de)registration and matching device capabilities against the application requests. The support for data storage is provided by Apache Jena Fuseki [45]. However, since the triple store is not equipped with the OWL inference, the DeVISor server uses BaseVISor [46], a forward-chaining inference engine specialized to handle facts in the form of RDF triples with support for OWL 2 RL [47] and XML Schema Datatypes, to make automatic inferences about any changes to the triple store. The following illustrates how DeVISor gets involved in the matching process with the associated implementations.
The first step taken during the matching process is to register devices. DeVISor supports such a feature by implementing an associate function (runSparqlUpdateFromString(updateScript:String):void), a function of the DeVISor client API which takes a SPARQL Update script as an input argument. Whenever there are RDF device descriptions needed to be registered, DeVISor wraps the dataset as a SPARQL Update script and invokes this function. After the script has been executed by the triple store, the dataset is inserted into the triple store as a set of triples. After that, the triple store returns all of the facts (including background knowledge) to the triple store client. BaseVISor loads the facts and executes the inference engine to derive inferred facts. The inferred facts are then inserted into the triple store.
After the devices have been registered, the next step is to send the application requests to DeVISor for matching. This feature is implemented by runSparqlQueryFromFile(queryPath:String):String, a function of the DeVISor client API, which is able to process a request as a SPARQL query script and return the query results in JSON format. When the function is invoked, DeVISor forwards the script to the triple store, and the triple store executes the script with the function and returns the results back. Note that BaseVISor is not involved in this process, since no inference is needed, and all of the inferred facts are already stored in the triple store. Since the results are in JSON format, the last step is to extract the matching devices from the results. The devices are identified by the Internationalized Resource Identifier (IRI) and are extracted by the binding value of the device variable in variable name/value pairs of the results.

5.3. XML-Based Matcher—BaseX

BaseX [48] is a robust, high-performance XML database engine and a fully compliant XQuery 3.1 processor with full support from the W3C Update and text extensions. It was selected as the XML-based matcher for matching devices represented in XML against application requests for services expressed in XQuery. Similar to DeVISor, BaseX follows the client–server architecture and also provides a client API [49] that supports multiple programming languages. The procedure of each step of the operation of BaseX is described below.
Device registration is implemented by calling a function of the BaseX client API, add(path:String, input:InputStream):void, which adds an XML document of the specified device description into the database. Once the devices are registered, the next step is to send the application requests to BaseX for matching. Several functions are supported by the BaseX client API for XQuery query processing. The first step is to parse a XQuery query script and pass it as a parameter into the function execute(command:String):String. When the function is invoked, BaseX processes the query and returns the query results. The results are in XML format, and each device is identified by its IRI, so the method navigates through the nested structure of the results and extracts the values within the element tag named “xqllib:var”.

5.4. Computation of Metrics

The query ground truth function was introduced in (7). According to this equation, given two representations, D x m l and D o w l , of a set of devices D and two query expressions, Q i x m l and Q i o w l , of a request for matching device capabilities Q i Q , the ground truth is assessed by taking the most complete ontology B 0 as a reference and using it for evaluating both approaches.
While this approach is not perfect, i.e., it would be better to have an independent source of ground truth, the simple fact is that such a source does not exist. While it would be possible to develop the ground truth by hand, such an approach is only applicable to cases where there is a relatively small set of device capabilities and a small set of queries. Since our intent was to assess the quality of matching on really large sets of device descriptions and queries, we had to come up with a solution that could be executed automatically without much participation by the human expert in the loop. While B 0 is advantageous for the OWL-based approach, the idea of using a descending chain of less and less complete ontologies makes this method relatively fair for both OWL- and XML-based approaches. Further discussions on fairness of the method are presented in Section 6.
The implementation of the query result completeness ((8) and (9)), soundness ((10) and (11)) and the F-measure ((12) and (13)) metrics are shown in Algorithms 1–3, respectively. It is worth noting that although XML-based and OWL-based approaches utilize their own notations to define the metrics, the definitions of the metrics for the two approaches are the same. Consequently, we used the same implementations for computing these metrics.

5.5. Experiments

We designed and implemented a proof-of-concept system to show the feasibility and correctness of the evaluation method (The source code is available at https://github.com/YankeeChen/evaluator, accessed on 15 November 2022). In this section, we present the experimental results obtained with the system.

5.5.1. Experimental Setup

All experiments were run on the MacBook Pro 2016 computer with the following parameters: Processor, 2.6 GHz quad-core Intel Core i7, Turbo Boost up to 3.5 GHz, with 6 MB shared L3 cache; Memory, 256 GB PCIe-based onboard SSD; and Storage, 16 GB of 2133 MHz LPDDR3 onboard memory.
In the experiments, the SDR ontology (https://github.com/YankeeChen/evaluator/blob/master/ontologies/SDROntology/BenchmarkOntology/SDR.owl, accessed on 15 November 2022) was selected as the background knowledge of the RF devices and set as the most complete knowledge representation, B 0 . In order to assess the effect of the richness of the ontology on the quality of the matching process and performance in the OWL-based approach, we developed five progressively less complete cases of background knowledge, { B 1 , B 2 , B 3 , B 4 , B 5 } , as the test ontologies (https://github.com/YankeeChen/evaluator/tree/master/ontologies/SDROntology/TestOntology, accessed on 15 November 2022). The smaller (less complete) ontologies were created by removing some of the defining axioms from the previous ontology. Table 4 shows the axiom coverage of the ontologies. For simplicity, only the axioms that B 0 includes are listed. B 5 is not included in this table since it did not cover any of the axioms. More axioms defining the radio capabilities add more constraints, and thus, the OWL reasoner is expected to be more precise when selecting devices that satisfy queries. The less complete definition implies that OWL reasoning can result in false negative classifications. This aspect of completeness is not directly correlated with the results of the XML-based approach, since it does not make use of logical inference.
In the experiments, 1000, 2000, 3000, and 4000 device descriptions in RDF/XML generated by RODG [8] with the most complete knowledge base B 0 were selected as the test datasets for the two approaches. Four batches of 5000 queries in SPARQL and XQuery were selected as the test query sets for matching device capabilities against the test datasets. For each batch of queries, SPARQL queries were generated by SQG [9] with the most complete ontology B 0 and respective test datasets. The corresponding XQuery queries were generated by converting the SPARQL queries with xql2xquery [32,33]. Note that queries in each batch may not be the same since they are for different datasets.

5.5.2. Evaluation Results and Analysis

In the results of the experiments, the ground truths of most of the requests are empty, which indicates that no matching results existed for these requests. This was expected, since device descriptions and queries were generated randomly and independently. What we were most interested in was how OWL inference affects the quality of the query results. We expected to see differences in the matching results of the two approaches. The queries that did not return any matches were not used in the comparisons of the two approaches. This section shows the quality metrics and analysis. The raw data for the metrics results are available online (https://github.com/YankeeChen/evaluator/tree/master/evaluationresults, accessed on 15 November 2022).
Figure 5a–c show the average recall, precision, and F-Measure metrics of the two approaches for each of the four batches of queries. For each batch, six results are shown. The five bars show, from left to right, the associated metrics for the OWL-based approach with the progressively less complete test ontologies ( B 1 to B 5 , from left to right). The rightmost bar shows the associated metric obtained using the XML-based approach.
For the recall metric, we conclude that the XML-based approach provides matching results that are approximately 34% less complete than those produced with the OWL-based approach with the relatively most complete test ontology B 1 . The result is roughly the same regardless of the number of devices. For instance, the average recall metric value of 5000 queries against 4000 devices in the XML-based approach is 65.75%, which is 34.25% lower than that produced with B 1 , and the results are about the same for other batches. It can also be observed from the results that the XML-based approach derives exactly the same results as the OWL-based approach with the least complete ontology B 5 for each batch. This is as expected, since B 5 does not include any OWL axioms except for vocabularies (see in Table 4), and thus no new facts can be derived by the OWL reasoner. Therefore, it derives exactly the same matching devices as the XML-based approach. When it comes to the comparison of the OWL-based approach with different versions of test ontologies, as expected, a more specific ontology (more precise definitions of classes) provides more power (more axioms) to the OWL reasoner, which results in more complete matching. This is essentially in agreement with the statement that James Hendler once made “A little semantics goes a long way” [50].
Regarding the precision metric, as expected, the XML-based approach derives exactly the same precision results as the OWL-based approach with the least complete ontology B 5 , regardless of the number of devices. The precision metric results of all batches are very high (more than 93%). Similarly to the recall metric results, a richer ontology provides better precision results. It can also be observed that the precision metric results increase with the number of devices until there are more than 3000. This is also as expected, since a query is more likely to have matching results when the datasets are large and diversified enough.
As a combined metric of precision and recall, the F-measure metric results reflect the overall metric results of precision and recall. Thus, similar conclusions and observations apply.
Figure 5d shows the time taken to register devices in the two approaches. As can be seen from the plots, the device registration time in the two approaches increases linearly with the number of devices. For each batch, the device registration time in the XML-based approach is always shorter than that in the OWL-based approach. For the OWL-based approach, apart from registering device descriptions, it takes additional time to run the inference engine and insert inferred facts into the triple store. The richness of the test ontologies affects the registration time; richer ontologies require the OWL reasoning to spend more time on the device registration process.
The plot in Figure 5e shows the average time taken to answer a query by the matchers of the two approaches. We conclude that the query response time in the XML-based approach is exponentially dependent on the number of devices and is significantly longer than that in the OWL-based approach. However, we cannot conclude that XQuery is less efficient than SPARQL. Apart from the query language, the query response time also depends on other factors, such as the query processor, query optimization, dataset structure, etc. Research on these topics is beyond the scope of this paper. Regarding the OWL-based approach, the query response time increases linearly with the number of devices. For each batch in the plot, the query processing time increases with the richness of the test ontologies. The experimental results are reasonable, since richer test ontologies may derive more inferred facts, which results in the expansion of the search scope of each query to derive matching results.

6. Discussion

The objective of this section is to discuss how the method satisfies the requirements stated in Section 1.2 and why the techniques used in the method are a good fit for our problem.
Clearly, the main challenge is to assure that the proposed method is fair to the two representation formalisms—XML and OWL. The first step is to use the same inputs and the same evaluation metrics. The problem is that the inputs and the queries must be expressed in two different languages. To assure a relatively good level of fairness, we had to rely on mappings between the languages that were as good as possible. We relied on the fact that OWL uses XML as one of the syntaxes. Thus, the same randomly generated device descriptions were expressed in the XML syntax of OWL and used by both XML and OWL based matchers. Second, queries were expressed in SPARQL and then translated using the xql2xquery tool, whose translation completeness and correctness is assured [32,33]. The same metrics (recall, precision and F-measure) were used to assess both approaches.
One of the most difficult issues was the ground truth—how to assess whether a given selection of the devices to satisfy a given query is correct. In our approach we used a “relative” rather than “absolute” definition of ground truth. Since our objective was to assess the value added by OWL inference, we used the most complete knowledge base as the reference and then compared the performance of the OWL-based matcher using progressively less complete knowledge bases. This approach did not impact the fairness of the comparison between the matchers, since the XML-based matcher provided the most complete information for each of the cases.
The coverage of the space of device descriptions used in our experiments was evaluated in [8], where it was shown that the SDR ontology used in the experiments provides good coverage of the knowledge of various types of RF devices and has extensive coverage of the OWL axioms. Second, the queries used in our experiments were assessed by various evaluation metrics in [9], and it was shown that the coverage of the query space is good.
Since RODG, SQG, xql2xquery, the OWL-based query processor (DeVISor), and the XML-based query processor (BaseX) can all handle large amounts of data, the method is able to deal with large-sized datasets and query sets and can extend to updates of the background knowledge, datasets, query sets, and metrics.

7. Conclusions

This paper proposes a method to compare the OWL-based and XML-based approaches to represent and query cognitive radio capabilities using quantitative metrics. In order to prove the feasibility and the correctness of the method, we developed a proof-of-concept system for the method. Two types of metrics, matching quality metrics and performance metrics, were collected by the system with progressively less complete background knowledge representations and different sized sets of devices and queries. The evaluation results clearly demonstrate the advantages of the OWL-based approach in terms of the quality of matching. The results also demonstrate the benefits of using a more specific ontology to improve the quality of the matching results at the cost of sacrificing some level of performance. To be specific, the quality metrics evaluation results show that (i) the quality of matching in the OWL-based approach is always no worse than the XML-based approach, regardless of the richness of the selected ontology and sizes of the devices, and (ii) in the OWL-based approach, a more specific ontology results in better matching results. (iii) A derived consequence of the above conclusions is that shallow use of OWL does not buy much in terms of the quality of matching.
The performance metrics evaluation results show that (i) the registration process in the XML-based approach takes less time, regardless of the number of devices; (ii) in the OWL-based approach, a more specific ontology results in a longer device registration time; (iii) the query processing time in the XML-based approach increases exponentially with the number of devices and is significantly longer than the query time in the OWL-based approach. However, we cannot decisively conclude that the XQuery query is less efficient than the SPARQL query, since the query processing time also depends on other factors, such as the query processor, query optimization, and dataset structure; and (iv) in the OWL-based approach, the query processing time depends on the richness of the ontology and thus it takes more time to process the same queries against the same devices with richer ontologies. Although we have not performed any investigations of the use of the proposed method in other domains, we suggest that the method is also applicable to areas other than just RF devices.
Following the main conclusion of this paper, the continuation of this research should focus on the OWL-based approach, which provides “more semantics” than XML. This can be achieved in two ways—by using richer ontologies and extensions to OWL using rules. The standardization of ontologies for the communications domain began with the development of the Cognitive Radio Ontology (CRO) by the Wireless Innovation Forum [51]. The CRO was then extended to CRO2 [52](available at [53]). Work on the standardization and extension of the expressive power of OWL is continuing at the IEEE [54].

Author Contributions

Conceptualization, Y.C., M.M.K. and J.M.; methodology, Y.C., M.M.K. and J.M.; software, Y.C. and J.M.; validation, Y.C. and M.M.K.; formal analysis, Y.C. and M.M.K.; investigation, Y.C. and M.M.K.; resources, Y.C. and M.M.K.; data curation, Y.C. and M.M.K.; writing—original draft preparation, Y.C. and M.M.K.; writing—review and editing, J.M., K.R.C.; visualization, Y.C. and M.M.K.; supervision, M.M.K.; project administration, Y.C. and M.M.K.; funding acquisition, M.M.K. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Defense Advanced Research Projects Agency (Grant Number W911NF-14-C-0065).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article. The data presented in this study can be requested from the authors.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Russell, M.; Kim, H. Learning UML 2.0; O’Reilly Media, Inc.: Sebastopol, CA, USA, 2006; Volume 286. [Google Scholar]
  2. Web Ontology Language (OWL). Available online: https://www.w3.org/OWL/ (accessed on 22 August 2022).
  3. Extensible Markup Language (XML) 1.0 (Fifth Edition). Available online: https://www.w3.org/TR/xml/ (accessed on 22 August 2022).
  4. RDF 1.1 Concepts and Abstract Syntax. Available online: https://www.w3.org/TR/rdf11-concepts/ (accessed on 22 August 2022).
  5. RDF 1.1 Semantics. Available online: https://www.w3.org/TR/rdf11-mt/ (accessed on 22 August 2022).
  6. SPARQL 1.1 Overview. Available online: https://www.w3.org/TR/sparql11-overview/ (accessed on 22 August 2022).
  7. XQuery 3.1: An XML Query Language. Available online: https://www.w3.org/TR/xquery-31/ (accessed on 22 August 2022).
  8. Chen, Y.; Kokar, M.M.; Moskal, J.J. RDF Object Description Generator (RODG). Int. J. Web Eng. Technol. 2020, 15, 140–169. [Google Scholar] [CrossRef]
  9. Chen, Y.; Kokar, M.M.; Moskal, J.J. SPARQL query generator (SQG). J. Web Semant. 2021, 10, 1–17. [Google Scholar] [CrossRef]
  10. Ferdinand, M.; Zirpins, C.; Trastour, D. Lifting XML schema to OWL. In Proceedings of the International Conference on Web Engineering; Springer: Berlin/Heidelberg, Germany, 2004; pp. 354–358. [Google Scholar]
  11. Garcia, R.; Celma, O. Semantic Integration and Retrieval of Multimedia Metadata. In Proceedings of the 5th International Workshop on Knowledge Markup and Semantic Annotation, Galway, Ireland, 7 November 2005. [Google Scholar]
  12. Bohring, H.; Auer, S. Mapping XML to OWL ontologies. Leipz.-Inform.-Tage (LIT2005) 2005, 72, 147–156. [Google Scholar]
  13. Rodrigues, T.; Rosa, P.; Cardoso, J. Mapping XML to existing OWL ontologies. In Proceedings of the International Conference WWW/Internet, Murcia, Spain, 5–8 October 2006; pp. 72–77. [Google Scholar]
  14. Rodrigues, T.; Rosa, P.; Cardoso, J. Moving from syntactic to semantic organizations using JXML2OWL. Comput. Ind. 2008, 59, 808–819. [Google Scholar] [CrossRef]
  15. Thuy, P.T.T.; Lee, Y.K.; Lee, S. DTD2OWL: Automatic Transforming XML documents into OWL ontology. In Proceedings of the 2nd International Conference on Interaction Sciences: Information Technology, Culture and Human, Seoul, Korea, 24–26 November 2009; pp. 125–131. [Google Scholar]
  16. Thuy, P.T.T.; Lee, Y.K.; Lee, S.; Jeong, B.S. Exploiting XML schema for interpreting XML documents as RDF. In Proceedings of the IEEE International Conference on Services Computing, Honolulu, HI, USA, 10–16 July 2008; pp. 555–558. [Google Scholar]
  17. Breitling, F. A standard transformation from XML to RDF via XSLT. Astron. Nachr. 2009, 330, 755–760. [Google Scholar] [CrossRef] [Green Version]
  18. Gleaning Resource Descriptions from Dialects of Languages (GRDDL). Available online: http://www.w3.org/TR/grddl/ (accessed on 22 August 2022).
  19. Van Deursen, D.; Poppe, C.; Martens, G.; Mannens, E.; Van de Walle, R. XML to RDF conversion: A generic approach. In Proceedings of the IEEE International Conference on Automated Solutions for Cross Media Content and Multi-Channel Distribution, Florence, Italy, 17–19 November 2008; pp. 138–144. [Google Scholar]
  20. Droop, M.; Flarer, M.; Groppe, J.; Groppe, S.; Linnemann, V.; Pinggera, J.; Santner, F.; Schier, M.; Schöpf, F.; Staffler, H.; et al. Bringing the XML and semantic web worlds closer: Transforming XML into RDF and embedding XPath into SPARQL. In Proceedings of the International Conference on Enterprise Information Systems (ICEIS); Springer: Berlin/Heidelberg, Germany, 2008; pp. 31–45. [Google Scholar]
  21. Droop, M.; Flarer, M.; Groppe, J.; Groppe, S.; Linnemann, V.; Pinggera, J.; Santner, F.; Schier, M.; Schoepf, F.; Staffler, H.; et al. Embedding XPath queries into SPARQL queries. In Proceedings of the International Conference on Enterprise Information Systems (ICEIS); Springer: Berlin/Heidelberg, Germany, 2008; pp. 5–14. [Google Scholar]
  22. O’Connor, M.J.; Das, A. Acquiring OWL ontologies from XML documents. In Proceedings of the 6th International Conference on Knowledge Capture, Banff, AB, Canada, 26–29 June 2011; pp. 17–24. [Google Scholar]
  23. Lacoste, D.; Sawant, K.P.; Roy, S. An efficient XML to OWL converter. In Proceedings of the 4th India Software Engineering Conference, Kerala, India, 24–27 February 2011; pp. 145–154. [Google Scholar]
  24. Berrueta, D.; Labra, J.E.; Herman, I. XSLT + SPARQL: Scripting the Semantic Web with SPARQL embedded into XSLT stylesheets. In Proceedings of the 4th Workshop on Scripting for the Semantic Web, Tenerife, Spain, 31 May–4 June 2008; pp. 1–18. [Google Scholar]
  25. Battle, S. Gloze: XML to RDF and back again. In Proceedings of the Jena User Conference, Bristol, UK, 10–11 May 2006. [Google Scholar]
  26. Miletic, I.; Vujasinovic, M.; Ivezic, N.; Marjanovic, Z. Enabling semantic mediation for business applications: XML-RDF, RDF-XML and XSD-RDFS transformations. In Enterprise Interoperability II; Springer: Berlin/Heidelberg, Germany, 2007; pp. 483–494. [Google Scholar]
  27. Semantic Annotations for WSDL and XML Schema. Available online: https://www.w3.org/TR/sawsdl/ (accessed on 22 August 2022).
  28. Akhtar, W.; Kopeckỳ, J.; Krennwallner, T.; Polleres, A. XSPARQL: Traveling between the XML and RDF worlds–And avoiding the XSLT pilgrimage. In Proceedings of the Extended Semantic Web Conference (ESWC); Springer: Berlin/Heidelberg, Germany, 2008; pp. 432–447. [Google Scholar]
  29. Bischof, S.; Decker, S.; Krennwallner, T.; Lopes, N.; Polleres, A. Mapping between RDF and XML with XSPARQL. J. Data Semant. 2012, 1, 147–185. [Google Scholar] [CrossRef] [Green Version]
  30. XSL Transformations (XSLT). Available online: https://www.w3.org/TR/xslt-30/ (accessed on 22 August 2022).
  31. Bikakis, N.; Tsinaraki, C.; Stavrakantonakis, I.; Gioldasis, N.; Christodoulakis, S. The SPARQL2XQuery interoperability framework. World Wide Web 2015, 18, 403–490. [Google Scholar] [CrossRef]
  32. Fischer, P.M.; Florescu, D.; Kaufmann, M.; Kossmann, D. Translating SPARQL and SQL to XQuery. XML Prague 2011, 81–98. [Google Scholar]
  33. Kaufmann, M. Mapping SPARQL and SQL to XQuery. Master’s Thesis, ETH Zurich, Zurich, Switzerland, 2010. [Google Scholar]
  34. Lechowicz, L.; Kokar, M.M. Cognitive Radio: Interoperability Through Waveform Reconfiguration; Artech House: New York, NY, USA, 2016. [Google Scholar]
  35. XML Schema Definition Language (XSD) 1.1 Part 1: Structures. Available online: https://www.w3.org/TR/xmlschema11-1/ (accessed on 22 August 2022).
  36. XML Schema Definition Language (XSD) 1.1 Part 2: Datatypes. Available online: https://www.w3.org/TR/xmlschema11-2/ (accessed on 22 August 2022).
  37. Comparison of the XML Model and the Relational Model. Available online: https://www.ibm.com/support/knowledgecenter/en/SSEPGG_10.1.0/com.ibm.db2.luw.xml.doc/doc/c0023811.html (accessed on 13 November 2022).
  38. Bikakis, N.; Tsinaraki, C.; Gioldasis, N.; Stavrakantonakis, I.; Christodoulakis, S. The XML and semantic web worlds: Technologies, interoperability and integration: A survey of the state of the art. In Semantic Hyper/Multimedia Adaptation; Springer: Berlin/Heidelberg, Germany, 2013; pp. 319–360. [Google Scholar]
  39. Dibowski, H.; Kabitzsch, K. Ontology-based device descriptions and device repository for building automation devices. EURASIP J. Embed. Syst. 2011, 2011, 623461. [Google Scholar] [CrossRef]
  40. Ueng, P.S.; Škrbić, S. Implementing XQuery fuzzy extensions using a native XML database. In Proceedings of the 13th IEEE International Symposium on Computational Intelligence and Informatics, Budapest, Hungary, 20–22 November 2012; pp. 305–309. [Google Scholar]
  41. Lewis, D.D.; Gale, W.A. A sequential algorithm for training text classifiers. In Proceedings of the SIGIR-94, 17th ACM International Conference on Research and Development in Information Retrieval, Dublin, Ireland, 3–6 July 1994; Springer: Berlin/Heidelberg, Germany, 1994; pp. 3–12. [Google Scholar]
  42. Sasaki, Y. The truth of the F-measure. Teach. Tutor Mater. 2007, 1, 1–5. [Google Scholar]
  43. RDF 1.1 XML Syntax. Available online: https://www.w3.org/TR/rdf-syntax-grammar/ (accessed on 22 August 2022).
  44. Moskal, J.J.; Kokar, M.M.; Hurez-Martin, O. Using standardized semantic technologies for discovery and invocation of RF-Based microservices. In Proceedings of the Wireless Innovation Summit on Wireless Communications Technologies, Palm Bay, FL, USA, 14–18 November 2018. [Google Scholar]
  45. Apache Jena Fuseki. Available online: https://jena.apache.org/documentation/fuseki2/ (accessed on 22 August 2022).
  46. BaseVISor. Available online: http://vistology.com/products/ (accessed on 22 August 2022).
  47. OWL 2 Web Ontology Language Profiles (Second Edition). Available online: https://www.w3.org/TR/owl2-profiles/ (accessed on 22 August 2022).
  48. BaseX. Available online: http://basex.org/ (accessed on 22 August 2022).
  49. BaseX Client. Available online: http://docs.basex.org/wiki/Clients (accessed on 22 August 2022).
  50. A Little Semantics Goes a Long Way. Available online: https://www.cs.rpi.edu/~hendler/LittleSemanticsWeb.html (accessed on 22 August 2022).
  51. Description of the Cognitive Radio Ontology, Technical Report WINNF-10-S-0007; Wireless Innovation Forum: Reston, VA, USA, 2010.
  52. Suresh, D.; Kokar, M.M.; Moskal, J.; Chen, Y. Updating CRO to CRO2. In Proceedings of the Wireless Innovation Forum Conference on Wireless Communications Technologies and Software Defined Radio; Wireless Innovation Forum: Reston, VA, USA, 2015. [Google Scholar]
  53. Cognitive Radio Ontology. Available online: https://cogradio.org/ (accessed on 16 November 2022).
  54. IEEE Std 1900.5.1™2020; IEEE Standard for Policy Language for Dynamic Spectrum Access Systems. IEEE Communications Society: Geneva, Switzerland, 2020.
Figure 1. Problem scenarios—UML use case diagram.
Figure 1. Problem scenarios—UML use case diagram.
Applsci 12 11946 g001
Figure 2. Visual representation of the evaluation process.
Figure 2. Visual representation of the evaluation process.
Applsci 12 11946 g002
Figure 3. Data flow diagram of the evaluation process with the notations.
Figure 3. Data flow diagram of the evaluation process with the notations.
Applsci 12 11946 g003
Figure 4. DeVISor architecture.
Figure 4. DeVISor architecture.
Applsci 12 11946 g004
Figure 5. Metrics evaluation results (a) Average recall comparison; (b) Average precision comparison; (c) Average F-Measure comparison; (d) Device registration time comparison; (e) Average query response time comparison.
Figure 5. Metrics evaluation results (a) Average recall comparison; (b) Average precision comparison; (c) Average F-Measure comparison; (d) Device registration time comparison; (e) Average query response time comparison.
Applsci 12 11946 g005
Table 1. Methods used for the transformation between RDF/OWL and XML.
Table 1. Methods used for the transformation between RDF/OWL and XML.
Related WorkSchema Transformation
(1) XML → RDF/OWL
Ferdinand et al. [10]XML Schema → OWL-DL
Garcia et al. [11]XML Schema → OWL-FULL
Bohring et al. [12]XML Schema → OWL-DL
JXML2OWL [13,14]N/A
DTD2OWL [15]DTD → OWL-DL
* Thuy et al. [16]XML Schema → OWL-DL
Breitling [17]N/A
* GRDDL [18]N/A
* XMLtoRDF [19]N/A
* Droop et al. [20,21]N/A
XMLMaster [22]N/A
EXCO [23]XML Schema → OWL-DL
(2) RDF/OWL → XML
XSLT + SPARQL [24]N/A
(3) Bidirectional
Gloze [25]N/A
Miletic et al. [26]XML Schema → OWL-DL
* SAWSDL [27]N/A
* XSPARQL [28,29]N/A
* Semi-automatic data transformation that requires user intervention.
Table 2. Languages used in the two approaches for each level.
Table 2. Languages used in the two approaches for each level.
OWL-BasedXML-Based
Background Knowledge
(Schema Level)
OWLXSD
Device Descriptions
(Data Level)
RDF/OWLXML
Requests for Services
(Query Level)
SPARQLXQuery
Table 3. A device example.
Table 3. A device example.
SpecificationsParameters
Device Name
Series
device_instance
USRP_N200
Spectrum SensingBandwidth200 kHz
Frequency Range80–120 MHz
Sensing Time1 s
TransmittingMax Output Power0.01 W
Table 4. Axiom coverage of the ontologies.
Table 4. Axiom coverage of the ontologies.
Axiom Type B 0 B 1 B 2 B 3 B 4
SubClassOf
EquivalentClasses
DisjointClasses
DisjointUnion
SubObjectPropertyOf
EquivalentObjectProperties
DisjointObjectProperties
InverseObjectProperties
ObjectPropertyDomain
ObjectPropertyRange
FunctionalObjectProperty
SymmetricObjectProperty
TransitiveObjectProperty
SubDataPropertyOf
EquivalentDataProperties
DataPropertyDomain
DataPropertyRange
FunctionalDataProperty
ClassAssertion
ObjectPropertyAssertion
DataPropertyAssertion
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Chen, Y.; Kokar, M.M.; Moskal, J.; Chowdhury, K.R. Metrics-Based Comparison of OWL and XML for Representing and Querying Cognitive Radio Capabilities. Appl. Sci. 2022, 12, 11946. https://doi.org/10.3390/app122311946

AMA Style

Chen Y, Kokar MM, Moskal J, Chowdhury KR. Metrics-Based Comparison of OWL and XML for Representing and Querying Cognitive Radio Capabilities. Applied Sciences. 2022; 12(23):11946. https://doi.org/10.3390/app122311946

Chicago/Turabian Style

Chen, Yanji, Mieczyslaw M. Kokar, Jakub Moskal, and Kaushik R. Chowdhury. 2022. "Metrics-Based Comparison of OWL and XML for Representing and Querying Cognitive Radio Capabilities" Applied Sciences 12, no. 23: 11946. https://doi.org/10.3390/app122311946

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop