The invention discloses a tense
RDF (
Resource Description Framework) query method based on SparkGraphX. The method comprises the following steps: converting a tense
RDF graph into a tense attribute graph with a
label on the basis of a Spark GraphX distributed graph
processing framework, performing sub-graph matching query on tense
RDF graph data on the basis of an optimized Pregel interface in GraphX, converting T-
SPARQL query into a function executed on a vertex, performing query
processing and optimization on the tense
RDF graph data in a graph
parallel computing mode, and performing query
processing and optimization on the tense
RDF graph data. And two strategies of vertex calculation optimization and communication
cost optimization are provided to improve the effectiveness of the
algorithm. Various methods exist for storing tense RDF data and processing T-
SPARQL query, but the graphic property of the RDF data causes a large amount of iterative connection, which has great influence on
system performance, and the research of a tense RDF model mainly lies in integration of tense information and a classical RDF model, so that the relationship between the classical RDF model and the tense
information needs to be coupled well. According to the method, large-scale query of the tense RDF data is carried out on a distributed platform, the characteristics of the time dimension and the graph structure are combined, storage and query of the tense RDF are efficiently carried out, the
data set of the tense RDF model is better managed, and the query speed of the
data set is increased.