Skip to content

Commit

Permalink
Add 'dc:', use 'rdfs:' instead of 'rdfs-schema:'.
Browse files Browse the repository at this point in the history
  • Loading branch information
mworrell committed Oct 22, 2021
1 parent 3f151ab commit 230ce9d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,13 @@ These are:
<tr><th>acl</th><td>http://www.w3.org/ns/auth/acl#</td></tr>
<tr><th>dbpedia</th><td>http://dbpedia.org/property/</td></tr>
<tr><th>dbpedia-owl</th><td>http://dbpedia.org/ontology/</td></tr>
<tr><th>dc</th><td>http://purl.org/dc/elements/1.1/</td></tr>
<tr><th>dcterms</th><td>http://purl.org/dc/terms/</td></tr>
<tr><th>dctype</th><td>http://purl.org/dc/dcmitype/</td></tr>
<tr><th>foaf</th><td>http://xmlns.com/foaf/0.1/</td></tr>
<tr><th>geo</th><td>http://www.w3.org/2003/01/geo/wgs84_pos#</td></tr>
<tr><th>rdf</th><td>http://www.w3.org/1999/02/22-rdf-syntax-ns#</td></tr>
<tr><th>rdf-schema</th><td>http://www.w3.org/2000/01/rdf-schema#</td></tr>
<tr><th>rdfs</th><td>http://www.w3.org/2000/01/rdf-schema#</td></tr>
<tr><th>schema</th><td>http://schema.org/</td></tr>
<tr><th>vcard</th><td>http://www.w3.org/2006/vcard/ns#</td></tr>
<tr><th>vocab</th><td>http://rdf.data-vocabulary.org/#</td></tr>
Expand Down
1 change: 1 addition & 0 deletions include/zotonic_rdf.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
-define(NS_ACL, <<"http://www.w3.org/ns/auth/acl#">>).
-define(NS_SCHEMA_ORG, <<"http://schema.org/">>).
-define(NS_FOAF, <<"http://xmlns.com/foaf/0.1/">>).
-define(NS_DC, <<"http://purl.org/dc/elements/1.1/">>).
-define(NS_DCTERMS, <<"http://purl.org/dc/terms/">>).
-define(NS_DCTYPE, <<"http://purl.org/dc/dcmitype/">>).
-define(NS_DBPEDIA_OWL, <<"http://dbpedia.org/ontology/">>).
Expand Down
3 changes: 2 additions & 1 deletion src/zotonic_rdf.erl
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,10 @@ compact(Doc, Namespaces) ->
namespaces() ->
#{
<<"rdf">> => ?NS_RDF,
<<"rdf-schema">> => ?NS_RDF_SCHEMA,
<<"rdfs">> => ?NS_RDF_SCHEMA,
<<"foaf">> => ?NS_FOAF,
<<"geo">> => ?NS_GEO,
<<"dc">> => ?NS_DC,
<<"dcterms">> => ?NS_DCTERMS,
<<"dctype">> => ?NS_DCTYPE,
<<"vcard">> => ?NS_VCARD,
Expand Down

0 comments on commit 230ce9d

Please sign in to comment.