Skip to content

Commit

Permalink
Add SemOpenAlex and supporting namespaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Hale committed Oct 29, 2023
1 parent b0ad9bc commit 6cd67f9
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 0 deletions.
15 changes: 15 additions & 0 deletions common/src/main/java/com/msd/gin/halyard/vocab/DBPEDIA.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.msd.gin.halyard.vocab;

import com.msd.gin.halyard.common.Vocabulary;

import org.eclipse.rdf4j.model.Namespace;
import org.eclipse.rdf4j.model.impl.SimpleNamespace;
import org.kohsuke.MetaInfServices;

@MetaInfServices(Vocabulary.class)
public final class DBPEDIA implements Vocabulary {
public static final String ONTOLOGY_NAMESPACE = "https://dbpedia.org/ontology/";
public static final String PROPERTY_NAMESPACE = "https://dbpedia.org/property/";
public static final Namespace ONTOLOGY_NS = new SimpleNamespace("dbo", ONTOLOGY_NAMESPACE);
public static final Namespace PROPERTY_NS = new SimpleNamespace("dbp", PROPERTY_NAMESPACE);
}
13 changes: 13 additions & 0 deletions common/src/main/java/com/msd/gin/halyard/vocab/PRISM.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.msd.gin.halyard.vocab;

import com.msd.gin.halyard.common.Vocabulary;

import org.eclipse.rdf4j.model.Namespace;
import org.eclipse.rdf4j.model.impl.SimpleNamespace;
import org.kohsuke.MetaInfServices;

@MetaInfServices(Vocabulary.class)
public final class PRISM implements Vocabulary {
public static final String NAMESPACE = "http://prismstandard.org/namespaces/basic/2.0/";
public static final Namespace NS = new SimpleNamespace("prism", NAMESPACE);
}
23 changes: 23 additions & 0 deletions common/src/main/java/com/msd/gin/halyard/vocab/SEMOPENALEX.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.msd.gin.halyard.vocab;

import com.msd.gin.halyard.common.Vocabulary;

import org.eclipse.rdf4j.model.Namespace;
import org.eclipse.rdf4j.model.impl.SimpleNamespace;
import org.kohsuke.MetaInfServices;

@MetaInfServices(Vocabulary.class)
public final class SEMOPENALEX implements Vocabulary {
public static final String CLASS_NAMESPACE = "https://semopenalex.org/class/";
public static final String PROPERTY_NAMESPACE = "https://semopenalex.org/property/";
public static final String CONCEPT_NAMESPACE = "https://semopenalex.org/concept/";
public static final String WORK_NAMESPACE = "https://semopenalex.org/work/";
public static final String AUTHOR_NAMESPACE = "https://semopenalex.org/author/";
public static final String INSTITUTION_NAMESPACE = "https://semopenalex.org/institution/";
public static final Namespace CLASS_NS = new SimpleNamespace("soa_class", CLASS_NAMESPACE);
public static final Namespace PROPERTY_NS = new SimpleNamespace("soa_prop", PROPERTY_NAMESPACE);
public static final Namespace CONCEPT_NS = new PrefixedIntegerNamespace("soa_concept", CONCEPT_NAMESPACE, "C");
public static final Namespace WORK_NS = new PrefixedIntegerNamespace("soa_work", WORK_NAMESPACE, "W");
public static final Namespace AUTHOR_NS = new PrefixedIntegerNamespace("soa_auth", WORK_NAMESPACE, "A");
public static final Namespace INSTITUTION_NS = new PrefixedIntegerNamespace("soa_inst", INSTITUTION_NAMESPACE, "I");
}
19 changes: 19 additions & 0 deletions common/src/main/java/com/msd/gin/halyard/vocab/SPAR.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.msd.gin.halyard.vocab;

import com.msd.gin.halyard.common.Vocabulary;

import org.eclipse.rdf4j.model.Namespace;
import org.eclipse.rdf4j.model.impl.SimpleNamespace;
import org.kohsuke.MetaInfServices;

@MetaInfServices(Vocabulary.class)
public final class SPAR implements Vocabulary {
public static final String BIDO_NAMESPACE = "http://purl.org/spar/bido/";
public static final Namespace BIDO_NS = new SimpleNamespace("bido", BIDO_NAMESPACE);

public static final String CITO_NAMESPACE = "http://purl.org/spar/cito/";
public static final Namespace CITO_NS = new SimpleNamespace("cito", CITO_NAMESPACE);

public static final String FABIO_NAMESPACE = "http://purl.org/spar/fabio/";
public static final Namespace FABIO_NS = new SimpleNamespace("fabio", FABIO_NAMESPACE);
}

0 comments on commit 6cd67f9

Please sign in to comment.