amalgame/commit
IMPROVED util.pl updated from using rdf_db to rdf11
author | Jacco van Ossenbruggen |
---|---|
Wed Feb 26 10:43:27 2020 +0100 | |
committer | Jacco van Ossenbruggen |
Wed Feb 26 10:43:27 2020 +0100 | |
commit | 2ed871c26ae06896fdfd04e14b4b6dc7ac1a47b6 |
tree | a41efd300c5c966691b596cc4aa2cd5f8997932b |
parent | e99a6055b530a3b18fbc48981fcdcf46d06fa70a |
Diff style: patch stat
diff --git a/lib/amalgame/util.pl b/lib/amalgame/util.pl index a937620..da0ce62 100644 --- a/lib/amalgame/util.pl +++ b/lib/amalgame/util.pl @@ -17,7 +17,7 @@ :- use_module(library(pairs)). :- use_module(library(sgml)). :- use_module(library(uri)). -:- use_module(library(semweb/rdf_db)). +:- use_module(library(semweb/rdf11)). :- use_module(user(user_db)). @@ -56,11 +56,11 @@ assert_user_provenance(R, Graph) :- logged_on(User), user_property(User, url(Agent)), ( user_property(User, realname(Realname)) - -> rdf_assert(Agent, rdfs:label, literal(Realname), Graph) + -> rdf_assert(Agent, rdfs:label, Realname, Graph) ), now_xsd(Time), rdf_assert(R, dcterms:creator, Agent, Graph), - rdf_assert(R, dcterms:date, literal(type(xsd:dateTime, Time)), Graph). + rdf_assert(R, dcterms:date, Time^^xsd:dateTime, Graph).