forked from Merck/Halyard
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SemOpenAlex and supporting namespaces.
- Loading branch information
Mark Hale
committed
Oct 29, 2023
1 parent
b0ad9bc
commit 6cd67f9
Showing
4 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
common/src/main/java/com/msd/gin/halyard/vocab/DBPEDIA.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
23
common/src/main/java/com/msd/gin/halyard/vocab/SEMOPENALEX.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |