Skip to content

Commit e0d3a20

Browse files
author
James Leigh
authored
Merge pull request #867 from seralf/master
update DOAP.java with default prefix
2 parents d5e7815 + 6f0f8da commit e0d3a20

2 files changed

Lines changed: 24 additions & 5 deletions

File tree

core/model/src/main/java/org/eclipse/rdf4j/model/vocabulary/DCAT.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@
2222
*/
2323
public class DCAT {
2424

25-
/**
26-
* The DCAT namespace: http://www.w3.org/ns/dcat#
27-
*/
28-
public static final String NAMESPACE = "http://www.w3.org/ns/dcat#";
29-
3025
/**
3126
* Recommended prefix for the Data Catalog Vocabulary namespace: "dcat"
3227
*/
3328
public static final String PREFIX = "dcat";
3429

30+
/**
31+
* The DCAT namespace: http://www.w3.org/ns/dcat#
32+
*/
33+
public static final String NAMESPACE = "http://www.w3.org/ns/dcat#";
34+
3535
/**
3636
* An immutable {@link Namespace} constant that represents the Data Catalog Vocabulary namespace.
3737
*/

core/model/src/main/java/org/eclipse/rdf4j/model/vocabulary/DOAP.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,35 @@
88
package org.eclipse.rdf4j.model.vocabulary;
99

1010
import org.eclipse.rdf4j.model.IRI;
11+
12+
import org.eclipse.rdf4j.model.Namespace;
13+
1114
import org.eclipse.rdf4j.model.ValueFactory;
15+
16+
import org.eclipse.rdf4j.model.impl.SimpleNamespace;
17+
1218
import org.eclipse.rdf4j.model.impl.SimpleValueFactory;
1319

1420
/**
1521
* Constants for DOAP primitives and for the DOAP namespace.
1622
*/
1723
public class DOAP {
1824

25+
/**
26+
* The recommended prefix for the DOAP namespace: "doap"
27+
*/
28+
public static final String PREFIX = "doap";
29+
30+
/**
31+
* The DOAP namespace: http://usefulinc.com/ns/doap#
32+
*/
1933
public static final String NAMESPACE = "http://usefulinc.com/ns/doap#";
2034

35+
/**
36+
* An immutable {@link Namespace} constant that represents the DOAP namespace.
37+
*/
38+
public static final Namespace NS = new SimpleNamespace(PREFIX, NAMESPACE);
39+
2140
/**
2241
* Classes
2342
*/

0 commit comments

Comments
 (0)