rdf-mt/commit
Added RDFS rule to generate datatype triples
author | Jan Wielemaker |
---|---|
Tue Dec 17 11:58:22 2013 +0100 | |
committer | Jan Wielemaker |
Tue Dec 17 11:58:22 2013 +0100 | |
commit | abe9ff29c17bb7220971fde39b1a612fff1cf211 |
tree | 01384625b8bde8f7697c847fd84ae5126bc3d7d0 |
parent | 2ead817192eb69a15f0786c01c25eff0e9e85027 |
Diff style: patch stat
diff --git a/lib/rdf_mt/mt_rdfs.pl b/lib/rdf_mt/mt_rdfs.pl index 62c2476..45b4e28 100644 --- a/lib/rdf_mt/mt_rdfs.pl +++ b/lib/rdf_mt/mt_rdfs.pl @@ -45,6 +45,16 @@ Terminology: % rdfs1 @@ % any IRI aaa in D ==> aaa rdf:type rdfs:Datatype . +rdfs1 @@ +{ S, P, L } ==> + L = literal(_), + \+ ( rdf(S,P,BN), + rdf_is_bnode(BN) + ), + rdf_bnode(BN), + { S, P, BN }, + { BN, rdf:type, rdfs:'Literal' }. + rdfs2 @@ { A, rdfs:domain, X }, { Y, A, _Z } ==>