• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

knowledgepixels / nanopub-query / 24885585611

24 Apr 2026 10:47AM UTC coverage: 48.404% (-10.9%) from 59.265%
24885585611

Pull #79

github

web-flow
Merge 7f787ecce into 9738a722d
Pull Request #79: refactor: remove v1 spaces infrastructure (prep for #62)

262 of 648 branches covered (40.43%)

Branch coverage included in aggregate %.

769 of 1482 relevant lines covered (51.89%)

7.55 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
src/main/java/com/knowledgepixels/query/vocabulary/GEN.java
1
package com.knowledgepixels.query.vocabulary;
2

3
import org.eclipse.rdf4j.model.IRI;
4
import org.eclipse.rdf4j.model.Namespace;
5
import org.nanopub.vocabulary.VocabUtils;
6

7
/**
8
 * IRIs and prefix declarations from the KPXL "gen" terms vocabulary
9
 * (<a href="https://w3id.org/kpxl/gen/terms/">https://w3id.org/kpxl/gen/terms/</a>).
10
 *
11
 * <p>Defines the subset needed by the space-extraction layer
12
 * (see {@code doc/plan-space-repositories.md}):
13
 * the {@link #SPACE} type and {@link #HAS_ROOT_DEFINITION} predicate for space
14
 * declarations; {@link #SPACE_MEMBER_ROLE} and its tier subclasses
15
 * ({@link #MAINTAINER_ROLE}, {@link #MEMBER_ROLE}, {@link #OBSERVER_ROLE}) for
16
 * role definitions; {@link #HAS_REGULAR_PROPERTY} and {@link #HAS_INVERSE_PROPERTY}
17
 * for role-predicate bindings; {@link #HAS_ROLE} for space/role attachments;
18
 * {@link #ROLE_INSTANTIATION} and {@link #ROLE_ASSIGNMENT} as rdf:types on
19
 * extraction entries; {@link #HAS_ADMIN} as the single hardcoded admin predicate.
20
 */
21
public class GEN {
22

23
    public static final String NAMESPACE = "https://w3id.org/kpxl/gen/terms/";
24
    public static final String PREFIX = "gen";
25
    public static final Namespace NS = VocabUtils.createNamespace(PREFIX, NAMESPACE);
×
26

27
    /** Class IRI marking a nanopub as a Space-defining nanopub. */
28
    public static final IRI SPACE = VocabUtils.createIRI(NAMESPACE, "Space");
×
29

30
    /**
31
     * Predicate connecting a Space IRI to the URI of its root nanopub. For a root
32
     * nanopub itself, the object is the nanopub's own URI; for an update, the object
33
     * points back at the original root nanopub.
34
     */
35
    public static final IRI HAS_ROOT_DEFINITION = VocabUtils.createIRI(NAMESPACE, "hasRootDefinition");
×
36

37
    /** Superclass of all role types (admin, maintainer, member, observer). */
38
    public static final IRI SPACE_MEMBER_ROLE = VocabUtils.createIRI(NAMESPACE, "SpaceMemberRole");
×
39

40
    /** Admin role tier. Single hardcoded instance; no user-defined admin roles. */
41
    public static final IRI ADMIN_ROLE = VocabUtils.createIRI(NAMESPACE, "AdminRole");
×
42

43
    /** Maintainer role tier. */
44
    public static final IRI MAINTAINER_ROLE = VocabUtils.createIRI(NAMESPACE, "MaintainerRole");
×
45

46
    /** Member role tier. */
47
    public static final IRI MEMBER_ROLE = VocabUtils.createIRI(NAMESPACE, "MemberRole");
×
48

49
    /** Observer role tier. Default tier when a role definition doesn't declare one. */
50
    public static final IRI OBSERVER_ROLE = VocabUtils.createIRI(NAMESPACE, "ObserverRole");
×
51

52
    /** Predicate granting admin status: hardcoded for the admin tier. */
53
    public static final IRI HAS_ADMIN = VocabUtils.createIRI(NAMESPACE, "hasAdmin");
×
54

55
    /** Predicate attaching a role IRI to a space. */
56
    public static final IRI HAS_ROLE = VocabUtils.createIRI(NAMESPACE, "hasRole");
×
57

58
    /** Predicate binding a role to the "regular" direction property (space &rarr; agent). */
59
    public static final IRI HAS_REGULAR_PROPERTY = VocabUtils.createIRI(NAMESPACE, "hasRegularProperty");
×
60

61
    /** Predicate binding a role to the "inverse" direction property (agent &rarr; space). */
62
    public static final IRI HAS_INVERSE_PROPERTY = VocabUtils.createIRI(NAMESPACE, "hasInverseProperty");
×
63

64
    /**
65
     * Nanopub type (new) for role-instantiation nanopubs — those that grant a role to
66
     * an agent in a space. Extraction entries are also tagged with this class.
67
     */
68
    public static final IRI ROLE_INSTANTIATION = VocabUtils.createIRI(NAMESPACE, "RoleInstantiation");
×
69

70
    /**
71
     * Tag on extraction entries derived from {@code gen:hasRole} (space/role attachment)
72
     * nanopubs. The raw nanopub itself is identified by the presence of a
73
     * {@code gen:hasRole} triple; the tag applies to the {@code npara:<artifactCode>}
74
     * extraction entry.
75
     */
76
    public static final IRI ROLE_ASSIGNMENT = VocabUtils.createIRI(NAMESPACE, "RoleAssignment");
×
77

78
    private GEN() {
79
    }
80

81
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc