diff --git a/Cargo.lock b/Cargo.lock index 6f9b3a4..6b7465f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1131,7 +1131,7 @@ checksum = "bd69ab1e90258b7769f0b5c46bfd802b8206d0707ced4ca4b9d5681b744de1be" [[package]] name = "rickview" -version = "0.1.1" +version = "0.1.2" dependencies = [ "actix-web", "bytesize", diff --git a/Cargo.toml b/Cargo.toml index 2670cdd..56dd8db 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rickview" -version = "0.1.1" +version = "0.1.2" edition = "2021" license = "MIT" keywords = ["rdf", "semantic-web", "linked-data"] diff --git a/data/index.html b/data/index.html index 94d778d..a98fc07 100644 --- a/data/index.html +++ b/data/index.html @@ -4,6 +4,7 @@ {title} + diff --git a/data/resource.html b/data/resource.html index fe5c81f..a16bc98 100644 --- a/data/resource.html +++ b/data/resource.html @@ -4,6 +4,7 @@ {title} + diff --git a/src/rdf.rs b/src/rdf.rs index 2152b64..0a1eec6 100644 --- a/src/rdf.rs +++ b/src/rdf.rs @@ -415,6 +415,7 @@ pub fn resource(subject: Iri<&str>) -> Resource { let inverses = if config().show_inverse { convert(connections(&ConnectionType::Inverse, &source)) } else { Vec::new() }; Resource { uri: piri.full, + base: config().base.clone(), duration: format!("{:?}", start.elapsed()), title, github_issue_url: config().github.as_ref().map(|g| format!("{g}/issues/new?title={suffix}")), diff --git a/src/resource.rs b/src/resource.rs index 61e4880..60ada6a 100644 --- a/src/resource.rs +++ b/src/resource.rs @@ -10,6 +10,7 @@ pub struct Property { #[derive(Serialize)] pub struct Resource { pub uri: String, + pub base: String, //pub suffix: String, pub title: String, pub main_type: Option,