Research Article

Heterogeneous Social Linked Data Integration and Sharing for Public Transportation

Table 5

C2RMF algorithm.

C2RMF algorithm

Input: CSV files; mapping files.
Output: RDF file
(1): Read the CSV file to get the columnsize
(2): Read the CSV file to get the rowsize
(3): Get column. Property of the CSV file
(4): For i = 1….Rowsize do
(5):  For each Column [i]. Property do
(6):   s ⟵ i
(7):   p ⟵ Get mapping. URI [i] of the mapping file
(8):   o ⟵ Columns [i]. value
(9):   Generate RDF triple (s, p, o)
(10): End for
(11): Return RDF triple in the RDF datasets.