Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for automatically constructing RDF data based on XML data

A technology of automatic construction and data, applied in the field of knowledge graph, can solve the problems of RDF data processing, data contradiction, RDF data data redundancy, etc.

Pending Publication Date: 2021-03-26
NANJING UNIV OF AERONAUTICS & ASTRONAUTICS
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

After analyzing the related XML data documents, some of the same element tags and attribute tags embedded in the content will appear repeatedly in the XML document, while the other part is different. In other data models In the database (such as relational database, RDF), the repeated data is only expressed and stored once, and if it is used multiple times in the same document, the reference mechanism will be used, but XML, which expresses data in nested relationships, does not of this mechanism
Therefore, if the data with the same label is not identified and screened in the process of converting XML to RDF, it will cause data redundancy or even data contradiction in the constructed RDF data, which will affect the construction of the RDF data. Data further processing (query and ontology-based reasoning)

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for automatically constructing RDF data based on XML data
  • Method for automatically constructing RDF data based on XML data
  • Method for automatically constructing RDF data based on XML data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0084] The present invention will be further described below in conjunction with the accompanying drawings.

[0085] The method for automatically constructing RDF data based on XML data of the present invention comprises the following three parts:

[0086] (1) Use different methods to extract semantics for different types of XML data

[0087] Such as figure 2 As shown, for unrestricted XML data, the elements with the same tag name are aggregated by traversal, and then the aggregated classes are sorted to obtain the abstract models corresponding to different aggregated classes, and the ontology RDF Schema is constructed according to the corresponding mapping rules; for XML Schema For restricted XMl data, relevant classes and attributes are obtained through parsing and processing of XML Schema, and ontology RDF Schema is constructed according to the obtained classes and attributes.

[0088] (2) Filter duplicate data entities for element numbers in XMl

[0089] Such as imag...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for automatically constructing RDF (Resource Description Framework) data based on XML (Extensive Makeup Language) data, which comprises the following steps: firstly, extracting semantics from different types of XML data; aggregating elements with the same label name for XML data without format limitation in a traversal mode, then sorting aggregation classes to obtain abstract models corresponding to different aggregation classes, and constructing an ontology RDF Schema according to corresponding mapping rules; tfor XML data with XML Schema limitation, analyzingand processing XML Schema to obtain related classes and attributes, and constructing an ontology RDF Schema according to the obtained classes and attributes; screening repeated data entities for element numbers in the XML, traversing repeated elements in the XML, adding unique codes to different elements according to equivalent element judgment conditions, and giving the same codes to the repeated elements; and finally, constructing corresponding mapping rules for different aggregation classes, and constructing RDF triples corresponding to the elements. According to the method, the purpose ofconverting the data into the RDF data is achieved, and the method is more universal.

Description

technical field [0001] The invention relates to the technical field of knowledge graphs, and mainly relates to a method for automatically constructing RDF data based on XML data. Background technique [0002] The development of World Wide Web technology has changed the development process of human society. Today, it exists in almost every aspect of human life. The transformation of World Wide Web technology has driven the progress of human society. Semantic Web technology, as one of the directions of this change, has made great progress since its birth. Semantic Web technology uses a representation method that is easier for machines to understand to describe data information on the WEB, enabling computers to process data more intelligently. RDF is a data model that describes the relationship between objects (resources) and objects. Using it as a model to describe data can give semantics to data. Semantic data can realize logical reasoning in the Semantic Web, making network...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F16/36G06F16/35G06F16/84
CPCG06F16/367G06F16/35G06F16/84
Inventor 刘玉春马宗民
Owner NANJING UNIV OF AERONAUTICS & ASTRONAUTICS
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products