99 * SPDX-License-Identifier: BSD-3-Clause
1010 *******************************************************************************/
1111
12- package org .eclipse .rdf4j .model .vocabulary . eu ;
12+ package org .eclipse .rdf4j .model .base ;
1313
14+ import org .eclipse .rdf4j .common .annotation .InternalUseOnly ;
1415import org .eclipse .rdf4j .model .IRI ;
1516import org .eclipse .rdf4j .model .Namespace ;
16- import org .eclipse .rdf4j .model .base .AbstractNamespace ;
17- import org .eclipse .rdf4j .model .base .InternedIRI ;
1817
1918/**
2019 * Utility methods related to RDF vocabularies.
2322 * @implNote To be eventually removed or merged with {@code org.eclipse.rdf4j.model.util.Vocabularies}.
2423 * @since 3.5.0
2524 */
26- class Vocabularies {
25+ @ InternalUseOnly
26+ public final class Vocabularies {
2727
2828 private Vocabularies () {
2929 }
3030
31- static Namespace createNamespace (String prefix , String namespace ) {
31+ /**
32+ * Create a new vocabulary namespace
33+ *
34+ * @param prefix prefix
35+ * @param namespace full namespace
36+ * @return
37+ */
38+ public static Namespace createNamespace (String prefix , String namespace ) {
3239 return new VocabularyNamespace (prefix , namespace );
3340 }
3441
@@ -54,7 +61,14 @@ public String getName() {
5461 }
5562 }
5663
57- static IRI createIRI (String namespace , String localName ) {
64+ /**
65+ * Create an (interned) IRI
66+ *
67+ * @param namespace
68+ * @param localName
69+ * @return
70+ */
71+ public static IRI createIRI (String namespace , String localName ) {
5872 return new InternedIRI (namespace , localName );
5973 }
6074
0 commit comments