RDF format file analysis method and RDF format file generation method

A format file and analysis method technology, applied in the field of data management, can solve the problems of no analysis class library, etc., and achieve the effect of easy manufacture, easy exchange, and rapid manufacture

Active Publication Date: 2020-06-19
陕西心像信息科技有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

RDF itself is an XML document, which conforms to the XML grammar structure, so although it can be parsed by a general-purpose XML parser, there is no class library for parsing and generating complex RDF format files for direct calling

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
  • RDF format file analysis method and RDF format file generation method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] The present invention provides a method for parsing an RDF format file and a method for generating an RDF format file, wherein the parsing method for an RDF format file comprises the following steps:

[0033] 1) Initialize the StreamReader class to bring in the RDF file path, convert the RDF file into a Stream stream file, and then initialize the XmlDocument class object, and convert the file stream into the corresponding XmlDocument class through the object's Load method;

[0034]2) Call the DocumentElement method inside the XmlDocument class to convert the XmlDocument class into the corresponding XmlElement document class, and obtain N Node node blocks of the document through the internal attribute value ChildNodes. The node object represents a single node in the XmlElement document tree. For example: P 1 ,P 2 ,P 3 ......P n ;

[0035] 3) Obtain the name of the corresponding node through the attribute of LocalName in the split Node node block, and then obtain the ...

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 relates to an RDF format file analysis method and an RDF format file generation method. The analysis method comprises the following steps: initializing a StreamReader class to bring in an RDF file path, converting an RDF file into a Stream stream file, initializing an XmlDocument class object, and converting a file stream into a corresponding XmlDocument class; the XmlDocument classis converted into a corresponding XmlElement document class, N Node node blocks of the document are obtained, and a node object represents an independent node in an XmlElement document tree; and obtaining names of corresponding nodes from the obtained N Node node blocks through attributes of the point LocalName, obtaining an attribute set of the nodes, completing analysis of the RDF, and generating a corresponding RDF analysis class. The method has the advantage that software using metadata can be manufactured more easily and quickly.

Description

technical field [0001] The invention belongs to the field of data management, and relates to a file parsing method and a generating method, in particular to an RDF file parsing method and a generating method. Background technique [0002] RDF is the resource description framework, which is the abbreviation of Resource Description Framework. It is usually used to express metadata about Web resources. An RDF file contains multiple resource descriptions, and a resource description is composed of multiple statements. A statement is A triplet consisting of resource, attribute type, and attribute value represents an attribute of the resource. With RDF, any resource can be described using its own vocabulary. [0003] RDF is used when information needs to be processed by applications rather than just displayed for human viewing. RDF provides a general framework for expressing this information and enabling it to be exchanged between applications without loss of semantics. Since it...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F40/14G06F40/154G06F40/205
CPCY02D10/00
Inventor 魏超李雨雨肖彦科李攀杨森杨俊毅
Owner 陕西心像信息科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products