Skip to content

Commit

Permalink
Replaced 'http://www.semanticweb.org' domain in HQDM IRIs with 'https…
Browse files Browse the repository at this point in the history
  • Loading branch information
GCHQDeveloper42 committed Jan 13, 2023
1 parent dc3efb0 commit aeca983
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class MagmaCoreServiceQueries {
* </p>
*/
public static final String FIND_BY_SIGN_VALUE_QUERY = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
Expand Down Expand Up @@ -71,7 +71,7 @@ public class MagmaCoreServiceQueries {
* </p>
*/
public static final String FIND_PARTICIPANT_DETAILS_QUERY = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
Expand Down Expand Up @@ -146,7 +146,7 @@ public class MagmaCoreServiceQueries {
* </p>
*/
public static final String FIND_OBJECTS_BY_TYPE_CLASS_AND_SIGN_PATTERN = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
select distinct *
Expand Down Expand Up @@ -231,7 +231,7 @@ public class MagmaCoreServiceQueries {
* </p>
*/
public static final String FIND_OBJECTS_BY_TYPE_AND_SIGN_PATTERN = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
select distinct *
Expand Down Expand Up @@ -304,12 +304,11 @@ public class MagmaCoreServiceQueries {
* Find Individuals with states participating in associations of a specified kind, their roles and
* signs.
* <p>
* The Kind IRI is needed in 3 places, e.g. String.format(FIND_BY_KIND_OF_ASSOCIATION, iri, iri,
* iri).
* The Kind IRI is needed in 3 places, e.g. {@code String.format(FIND_BY_KIND_OF_ASSOCIATION, iri, iri, iri)}.
* </p>
*/
public static final String FIND_BY_KIND_OF_ASSOCIATION = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
select ?s ?p ?o
where
Expand Down Expand Up @@ -365,7 +364,7 @@ public class MagmaCoreServiceQueries {
* Find things associated to a given thing by an association of a given kind.
*/
public static final String FIND_ASSOCIATED = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
select ?s ?p ?o ?start ?finish
Expand Down Expand Up @@ -454,7 +453,7 @@ public class MagmaCoreServiceQueries {
* Search for items whose sign contains some text and are members of a specific class.
*/
public static final String FIND_MEMBERS_OF_CLASS_BY_PARTIAL_SIGN_CASE_SENSITIVE = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT distinct ?s ?p ?o ?start ?finish
Expand Down Expand Up @@ -647,7 +646,7 @@ public class MagmaCoreServiceQueries {
* A partial search by sign for entities composed into a whole entity.
*/
public static final String FIND_MEMBERS_OF_CLASS_BY_COMPOSITION_AND_PARTIAL_SIGN_CASE_SENSITIVE = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT distinct ?s ?p ?o ?start ?finish
Expand Down Expand Up @@ -749,7 +748,7 @@ public class MagmaCoreServiceQueries {
* Find the signs for an entity and the pattern and representation by pattern ENTITY_NAMES.
*/
public static final String FIND_SIGNS_FOR_ENTITY = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT distinct ?sign_value ?pattern_name ?rep_by_pattern_name ?start ?finish
Expand Down Expand Up @@ -787,7 +786,7 @@ public class MagmaCoreServiceQueries {
* TODO: Comment.
*/
public static final String FIND_BY_FIELD_VALUE_AND_CLASS = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?s ?p ?o
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
public class DataIntegrityReport {

private static final String CHECK_MISSING_DATA_ENTITY_NAME = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
construct {
?s hqdm:error_missing_entity_name "Should have a data_EntityName.".
Expand Down Expand Up @@ -141,7 +141,7 @@ public class DataIntegrityReport {
""";

private static final String CHECK_MISSING_PARTICIPANT_ROLES = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
construct {
?s hqdm:error_participant_with_no_role "Should be a member_of_kind of a role.".
Expand All @@ -163,7 +163,7 @@ public class DataIntegrityReport {
""";

private static final String CHECK_POSSIBLE_WORLD_MEMBERSHIP = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
construct {
Expand Down Expand Up @@ -299,7 +299,7 @@ public class DataIntegrityReport {
""";

private static final String CHECK_STATE_TEMPORAL_PART_OF = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
construct {
?s hqdm:error_missing_temporal_part_of "Should be a temporal_part_of some individual.".
Expand Down Expand Up @@ -345,7 +345,7 @@ public class DataIntegrityReport {
""";

private static final String CHECK_SIGN_VALUE_ = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
construct {
?s hqdm:error_missing_value_ "Should have a value_ for a sign.".
Expand All @@ -363,7 +363,7 @@ public class DataIntegrityReport {
""";

private static final String CHECK_SIGN_MEMBER_OF_PATTERN = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
construct {
?s hqdm:error_missing_member_of_ "Should be a member_of_ of some pattern.".
Expand All @@ -381,7 +381,7 @@ public class DataIntegrityReport {
""";

private static final String CHECK_REP_BY_PATTERN_CONSISTS_OF_BY_CLASS = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
construct {
?s hqdm:error_missing_consists_of_by_class
Expand All @@ -399,7 +399,7 @@ public class DataIntegrityReport {
""";

private static final String CHECK_REP_BY_SIGN_CONSISTS_OF_COMMUNITY = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
construct {
?s hqdm:error_missing_consists_of_ "Should have a consists_of_ from Rep By Sign.".
Expand All @@ -416,7 +416,7 @@ public class DataIntegrityReport {
""";

private static final String CHECK_REP_BY_SIGN_CONSISTS_OF_SIGN = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
construct {
?s hqdm:error_missing_consists_of "Should have a consists_of from Rep By Sign.".
Expand All @@ -433,7 +433,7 @@ public class DataIntegrityReport {
""";

private static final String CHECK_REP_BY_PATTERN_CONSISTS_OF_IN_MEMBERS = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
construct {
?s hqdm:error_missing_consists_of_in_members "Should have a consists_of_in_members from Rep By Pattern.".
Expand All @@ -456,7 +456,7 @@ public class DataIntegrityReport {
""";

private static final String CHECK_REP_BY_SIGN_REPRESENTS = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
construct {
?s hqdm:error_missing_represents "Should have a represents from Rep By Sign.".
Expand All @@ -473,7 +473,7 @@ public class DataIntegrityReport {
""";

private static final String CHECK_STATE_OF_SIGN_PARTICIPANT_IN = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
construct {
?s hqdm:error_missing_sign_participant_in "Should have a participant_in to Rep By Sign.".
Expand All @@ -490,7 +490,7 @@ public class DataIntegrityReport {
""";

private static final String CHECK_REP_BY_SIGN_MEMBER_OF = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
construct {
?s hqdm:error_missing_member_of_ "Should have a member_of_ to Rep By Pattern.".
Expand All @@ -507,7 +507,7 @@ public class DataIntegrityReport {
""";

private static final String CHECK_REP_BY_SIGN_HAS_SIGN_PARTICIPANT = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
construct {
?s hqdm:error_missing_sign "Should have a state_of_sign as a participant_in this Rep By Sign.".
Expand All @@ -525,7 +525,7 @@ public class DataIntegrityReport {
""";

private static final String CHECK_REP_BY_SIGN_HAS_COMMUNITY_PARTICIPANT = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
construct {
?s hqdm:error_missing_community
Expand All @@ -544,7 +544,7 @@ public class DataIntegrityReport {
""";

private static final String CHECK_ROLE_PART_OF_BY_CLASS_ = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
construct {
?s hqdm:error_missing_part_of_by_class_ "Should have a part_of_by_class_ to a kind_of_association.".
Expand All @@ -562,7 +562,7 @@ public class DataIntegrityReport {
""";

private static final String CHECK_ASSOCIATION_MEMBER_OF_KIND = """
PREFIX hqdm: <http://www.semanticweb.org/hqdm#>
PREFIX hqdm: <https://hqdmtop.github.io/hqdm#>
construct {
?s hqdm:error_missing_kind_of_association "Should have a member_of_kind to a kind_of_association.".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
public class DemoUtils {

/** IriBase for Reference Data Library. */
public static final IriBase REF_BASE = new IriBase("rdl", "http://www.semanticweb.org/magma-core/rdl#");
public static final IriBase REF_BASE = new IriBase("rdl", "https://github.com/gchq/MagmaCore/rdl#");

/** IriBase for User data. */
public static final IriBase USER_BASE = new IriBase("user", "http://www.semanticweb.org/magma-core/user#");
public static final IriBase USER_BASE = new IriBase("user", "https://github.com/gchq/MagmaCore/user#");

/**
* Populate a {@link MagmaCoreService} database.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ private HQDM() {
}

/** HQDM namespace. */
public static final IriBase HQDM = new IriBase("hqdm", "http://www.semanticweb.org/hqdm#");
public static final IriBase HQDM = new IriBase("hqdm", "https://hqdmtop.github.io/hqdm#");

/** A human-interpretable name for a particular HQDM entity. */
public static final HqdmIri ENTITY_NAME = new HqdmIri(HQDM, "data_EntityName");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
public class TriplesTest {

private static final String EXPECTED1 = """
<http://www.semanticweb.org/hqdm#person1> <http://www.semanticweb.org/hqdm#member_of_kind> \"\"\"PERSON_KIND\"\"\"^^<http://www.w3.org/2001/XMLSchema#string>;
<http://www.semanticweb.org/hqdm#data_EntityName> <http://www.semanticweb.org/hqdm#person1>;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.semanticweb.org/hqdm#participant>;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.semanticweb.org/hqdm#person>.
<https://hqdmtop.github.io/hqdm#person1> <https://hqdmtop.github.io/hqdm#member_of_kind> \"\"\"PERSON_KIND\"\"\"^^<http://www.w3.org/2001/XMLSchema#string>;
<https://hqdmtop.github.io/hqdm#data_EntityName> <https://hqdmtop.github.io/hqdm#person1>;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://hqdmtop.github.io/hqdm#participant>;
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://hqdmtop.github.io/hqdm#person>.
""";

/**
Expand Down

0 comments on commit aeca983

Please sign in to comment.