Skip to content

Commit 8bd72e0

Browse files
committed
licensing info added
1 parent b0194f8 commit 8bd72e0

File tree

10 files changed

+64
-9
lines changed

10 files changed

+64
-9
lines changed

.github/workflows/test_build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Building XML2RDF and testing
1+
name: Building CSV2RDF and testing
22

33
on:
44
schedule:

Cargo.toml

+7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
[package]
22
name = "csv2rdf"
33
version = "0.1.0"
4+
authors = ["bharath181 <[email protected]>", "Greg Hanson <[email protected]>"]
45
edition = "2021"
6+
license = "BSD-3-Clause"
7+
description = "Library for converting an CSV file to N-Triple RDF"
8+
repository = "https://github.com/DeciSym/csv2rdf"
9+
readme = "README.md"
10+
keywords = ["csv", "rdf", "n-triples", "semantic-web", "converter", "parser"]
11+
categories = ["command-line-utilities", "encoding", "parser-implementations", "science", "web-programming"]
512

613
[dependencies]
714
clap = { version = "4.5.30", features = ["derive","cargo"] }

LICENSE

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2024, DeciSym, LLC
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions are met:
7+
8+
1. Redistributions of source code must retain the above copyright notice, this
9+
list of conditions and the following disclaimer.
10+
11+
2. Redistributions in binary form must reproduce the above copyright notice,
12+
this list of conditions and the following disclaimer in the documentation
13+
and/or other materials provided with the distribution.
14+
15+
3. Neither the name of the copyright holder nor the names of its
16+
contributors may be used to endorse or promote products derived from
17+
this software without specific prior written permission.
18+
19+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright (c) 2024-2025, Decisym, LLC
2+
# Licensed under the BSD 3-Clause License (see LICENSE file in the project root).
13

24
lint:
35
cargo install cargo-machete

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# csv2rdf
22
Library for converting CSV files into RDF
33

4-
This Rust-based tool converts CSV data into RDF format, utilizing the `oxrdf` crate for RDF graph handling and `csv` for efficient CSV parsing. Generated triples can either be added to an `oxrdf::Graph` or written directly to file.
4+
This Rust-based tool converts CSV data into RDF format, utilizing the `oxrdf` crate for RDF graph handling and `csv` for efficient CSV parsing. Generated triples can either be added to an `oxrdf::Graph` or written directly to file.
5+
6+
## License
7+
This project is licensed under the BSD 3-Clause License - see the [LICENSE](LICENSE) file for details.

src/convert.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
// Copyright (c) 2024-2025, Decisym, LLC
2+
// Licensed under the BSD 3-Clause License (see LICENSE file in the project root).
3+
14
//! # CSV2RDF Converter Library
25
//!
36
//! This library provides functionality for converting CSV data into RDF format.
4-
//! It uses `csv` for XML parsing and `oxrdf` to build and manage RDF graphs.
7+
//! It uses `csv` for CSV parsing and `oxrdf` to build and manage RDF graphs.
58
//!
69
//! ## Overview
710
//! - Converts CSV data structures into RDF triples, generating a graph representation.

src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
// Copyright (c) 2024-2025, Decisym, LLC
2+
// Licensed under the BSD 3-Clause License (see LICENSE file in the project root).
3+
14
pub mod convert;
25
pub mod writer;

src/main.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2024-2025, Decisym, LLC
2+
// Licensed under the BSD 3-Clause License (see LICENSE file in the project root).
3+
14
//! # CSV2RDF Converter
25
//!
36
//! This is a Rust-based tool that converts CSV data into RDF format. It uses the `csv` crate
@@ -17,7 +20,7 @@
1720
//! ## Example
1821
//! To convert a CSV file to RDF format with a specified namespace and output file:
1922
//! ```
20-
//! csv2rdf convert --namespace http://example.com/ns# --input data.xml --output output.nt
23+
//! csv2rdf convert --namespace http://example.com/ns# --input data.csv --output output.nt
2124
//! ```
2225
//! This will take `data.csv`, apply the specified namespace, and save the RDF output in `output.nt`.
2326
@@ -47,7 +50,7 @@ enum Commands {
4750
Convert {
4851
/// Namespace for RDF graph generation.
4952
///
50-
/// A custom namespace to prefix RDF resources created from XML keys and values.
53+
/// A custom namespace to prefix RDF resources created from CSV columns and rows.
5154
#[arg(short, long, default_value = "https://decisym.ai/csv2rdf/data")]
5255
namespace: String,
5356

src/writer.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
//! # XML2RDF Writer Library
1+
// Copyright (c) 2024-2025, Decisym, LLC
2+
// Licensed under the BSD 3-Clause License (see LICENSE file in the project root).
3+
4+
//! # CSV2RDF Writer Library
25
//!
3-
//! This library provides functionality for writing covnerted XML2RDF data.
6+
//! This library provides functionality for writing covnerted CSV2RDF data.
47
//! It uses `oxrdf` to build and manage RDF graphs or output the data direct to a file.
58
//!
69
//! ## Overview
7-
//! - Adds XML RDF triples to a graph or file.
10+
//! - Adds CSV RDF triples to a graph or file.
811
912
use oxrdf::{Graph, TripleRef};
1013
use std::fs::File;

tests/integration.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2024-2025, Decisym, LLC
2+
// Licensed under the BSD 3-Clause License (see LICENSE file in the project root).
3+
14
use csv2rdf::*;
25
use oxrdf::Graph;
36
use oxrdfio::{RdfFormat, RdfParser};
@@ -12,7 +15,7 @@ fn test_graph_writer() {
1215
let res = convert::parse_csv(
1316
vec!["tests/resources/people.csv".to_string()],
1417
&mut w,
15-
"https://decisym.ai/xml2rdf/data",
18+
"https://decisym.ai/csv2rdf/data",
1619
);
1720
assert!(res.is_ok());
1821

0 commit comments

Comments
 (0)