Smalyshev has uploaded a new change for review. https://gerrit.wikimedia.org/r/206955
Change subject: T95441: represent novalue in the same way as WDTK ...................................................................... T95441: represent novalue in the same way as WDTK Change-Id: I4e0b001a056541a10550d3f85a51b6ed79ab86d1 --- M repo/includes/rdf/FullStatementRdfBuilder.php M repo/includes/rdf/RdfBuilder.php M repo/includes/rdf/RdfVocabulary.php M repo/includes/rdf/TruthyStatementRdfBuilder.php M repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q4_all.nt M repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q4_minimal.nt M repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q4_statements.nt M repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q4_values.nt M repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q6_with_qualifiers.nt M repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q7_refs.nt M repo/tests/phpunit/data/rdf/Q4_all_statements.nt M repo/tests/phpunit/data/rdf/Q4_claims.nt M repo/tests/phpunit/data/rdf/Q4_props.nt M repo/tests/phpunit/data/rdf/Q4_resolved.nt M repo/tests/phpunit/data/rdf/Q4_truthy_statements.nt M repo/tests/phpunit/data/rdf/Q4_values.nt M repo/tests/phpunit/data/rdf/Q6_qualifiers.nt M repo/tests/phpunit/data/rdf/Q6_with_qualifiers.nt M repo/tests/phpunit/data/rdf/Q7_Q9_dedup.nt M repo/tests/phpunit/data/rdf/Q7_references.nt M repo/tests/phpunit/data/rdf/Q7_refs.nt M repo/tests/phpunit/data/rdf/TruthyStatementRdfBuilder/Q4_statements.nt M repo/tests/phpunit/data/rdf/dump_entities.nt M repo/tests/phpunit/data/rdf/dump_refs.nt 24 files changed, 97 insertions(+), 24 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase refs/changes/55/206955/1 diff --git a/repo/includes/rdf/FullStatementRdfBuilder.php b/repo/includes/rdf/FullStatementRdfBuilder.php index 1187bbe..6c1785c 100644 --- a/repo/includes/rdf/FullStatementRdfBuilder.php +++ b/repo/includes/rdf/FullStatementRdfBuilder.php @@ -273,7 +273,7 @@ case 'novalue': $propertyValueLName = $this->vocabulary->getEntityLName( $propertyId ); - $writer->say( $propertyNamespace, $propertyValueLName )->is( RdfVocabulary::NS_ONTOLOGY, 'Novalue' ); + $writer->say( 'a' )->is( RdfVocabulary::NSP_NOVALUE, $propertyValueLName ); break; default: throw new InvalidArgumentException( 'Unknown snak type: ' . $snak->getType() ); diff --git a/repo/includes/rdf/RdfBuilder.php b/repo/includes/rdf/RdfBuilder.php index 71200c1..1d565d0 100644 --- a/repo/includes/rdf/RdfBuilder.php +++ b/repo/includes/rdf/RdfBuilder.php @@ -274,6 +274,19 @@ } /** + * Write definition for wdno:P123 class to use as novalue + * @param string $id + */ + private function writeNovalueClass( $id ) { + $this->writer->about( RdfVocabulary::NSP_NOVALUE, $id )->say( 'a' )->is( 'owl', 'Class' ); + $internalClass = $this->writer->blank(); + $this->writer->say( 'owl', 'complementOf' )->is( '_', $internalClass ); + $this->writer->about( '_', $internalClass )->say( 'a' )->is( 'owl', 'Restriction' ); + $this->writer->say( 'owl', 'onProperty' )->is( RdfVocabulary::NSP_DIRECT_CLAIM, $id ); + $this->writer->say( 'owl', 'someValuesFrom' )->is( 'owl', 'Thing' ); + } + + /** * Write predicates linking property entity to property predicates * @param string $id */ @@ -286,6 +299,7 @@ $this->writer->say( RdfVocabulary::NS_ONTOLOGY, 'qualifierValue' )->is( RdfVocabulary::NSP_QUALIFIER_VALUE, $id ); $this->writer->say( RdfVocabulary::NS_ONTOLOGY, 'reference' )->is( RdfVocabulary::NSP_REFERENCE, $id ); $this->writer->say( RdfVocabulary::NS_ONTOLOGY, 'referenceValue' )->is( RdfVocabulary::NSP_REFERENCE_VALUE, $id ); + $this->writer->say( RdfVocabulary::NS_ONTOLOGY, 'novalue' )->is( RdfVocabulary::NSP_NOVALUE, $id ); } /** @@ -319,7 +333,9 @@ if( $entity instanceof Property ) { $this->writer->say( RdfVocabulary::NS_ONTOLOGY, 'propertyType' ) ->is( RdfVocabulary::NS_ONTOLOGY, $this->vocabulary->getDataTypeName( $entity ) ); - $this->writePropertyPredicates( $entity->getId()->getSerialization() ); + $id = $entity->getId()->getSerialization(); + $this->writePropertyPredicates( $id ); + $this->writeNovalueClass( $id ); } } diff --git a/repo/includes/rdf/RdfVocabulary.php b/repo/includes/rdf/RdfVocabulary.php index a056e97..df9321d 100644 --- a/repo/includes/rdf/RdfVocabulary.php +++ b/repo/includes/rdf/RdfVocabulary.php @@ -40,6 +40,7 @@ const NSP_QUALIFIER_VALUE = 'pqv'; // statement -> qualifier deep value const NSP_REFERENCE = 'pr'; // reference -> simple value const NSP_REFERENCE_VALUE = 'prv'; // reference -> deep value + const NSP_NOVALUE = 'wdno'; // novalue class // other prefixes const NS_SKOS = 'skos'; // SKOS vocabulary const NS_SCHEMA_ORG = 'schema'; // schema.org vocabulary @@ -110,6 +111,7 @@ 'rdf' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns#', 'rdfs' => 'http://www.w3.org/2000/01/rdf-schema#', 'xsd' => 'http://www.w3.org/2001/XMLSchema#', + 'owl' => 'http://www.w3.org/2002/07/owl#', self::NS_ONTOLOGY => self::ONTOLOGY_BASE_URI . "-beta#", // nodes self::NS_DATA => $this->dataUri, @@ -126,6 +128,7 @@ self::NSP_QUALIFIER_VALUE => $propUri . 'qualifier/value/', self::NSP_REFERENCE => $propUri . 'reference/', self::NSP_REFERENCE_VALUE => $propUri . 'reference/value/', + self::NSP_NOVALUE => $propUri . 'novalue/', // external self::NS_SKOS => self::SKOS_URI, self::NS_SCHEMA_ORG => self::SCHEMA_ORG_URI, diff --git a/repo/includes/rdf/TruthyStatementRdfBuilder.php b/repo/includes/rdf/TruthyStatementRdfBuilder.php index 9e7ef5d..c22d147 100644 --- a/repo/includes/rdf/TruthyStatementRdfBuilder.php +++ b/repo/includes/rdf/TruthyStatementRdfBuilder.php @@ -90,7 +90,7 @@ case 'novalue': $propertyValueLName = $this->vocabulary->getEntityLName( $propertyId ); - $this->writer->say( RdfVocabulary::NSP_DIRECT_CLAIM, $propertyValueLName )->is( RdfVocabulary::NS_ONTOLOGY, 'Novalue' ); + $this->writer->say( 'a' )->is( RdfVocabulary::NSP_NOVALUE, $propertyValueLName ); break; default: throw new InvalidArgumentException( 'Unknown snak type: ' . $snak->getType() ); diff --git a/repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q4_all.nt b/repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q4_all.nt index c9cb9dd..7686ef7 100644 --- a/repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q4_all.nt +++ b/repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q4_all.nt @@ -17,7 +17,7 @@ <http://acme.test/statement/TEST-Statement-2-475ae31b07cff4f0e33531030b1ba58f004fcd4b> <http://acme.test/prop/statement/P2> <http://acme.test/Q666> . <http://acme.test/statement/TEST-Statement-2-475ae31b07cff4f0e33531030b1ba58f004fcd4b> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.wikidata.org/ontology-beta#Statement> . <http://acme.test/statement/TEST-Statement-2-475ae31b07cff4f0e33531030b1ba58f004fcd4b> <http://www.wikidata.org/ontology-beta#rank> <http://www.wikidata.org/ontology-beta#NormalRank> . -<http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://acme.test/prop/statement/P3> <http://www.wikidata.org/ontology-beta#Novalue> . +<http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://acme.test/prop/novalue/P3> . <http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.wikidata.org/ontology-beta#Statement> . <http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.wikidata.org/ontology-beta#rank> <http://www.wikidata.org/ontology-beta#BestRank> . <http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.wikidata.org/ontology-beta#rank> <http://www.wikidata.org/ontology-beta#NormalRank> . diff --git a/repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q4_minimal.nt b/repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q4_minimal.nt index e5a4144..3b8f111 100644 --- a/repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q4_minimal.nt +++ b/repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q4_minimal.nt @@ -17,7 +17,7 @@ <http://acme.test/statement/TEST-Statement-2-475ae31b07cff4f0e33531030b1ba58f004fcd4b> <http://acme.test/prop/statement/P2> <http://acme.test/Q666> . <http://acme.test/statement/TEST-Statement-2-475ae31b07cff4f0e33531030b1ba58f004fcd4b> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.wikidata.org/ontology-beta#Statement> . <http://acme.test/statement/TEST-Statement-2-475ae31b07cff4f0e33531030b1ba58f004fcd4b> <http://www.wikidata.org/ontology-beta#rank> <http://www.wikidata.org/ontology-beta#NormalRank> . -<http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://acme.test/prop/statement/P3> <http://www.wikidata.org/ontology-beta#Novalue> . +<http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://acme.test/prop/novalue/P3> . <http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.wikidata.org/ontology-beta#Statement> . <http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.wikidata.org/ontology-beta#rank> <http://www.wikidata.org/ontology-beta#BestRank> . <http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.wikidata.org/ontology-beta#rank> <http://www.wikidata.org/ontology-beta#NormalRank> . diff --git a/repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q4_statements.nt b/repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q4_statements.nt index e5a4144..3b8f111 100644 --- a/repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q4_statements.nt +++ b/repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q4_statements.nt @@ -17,7 +17,7 @@ <http://acme.test/statement/TEST-Statement-2-475ae31b07cff4f0e33531030b1ba58f004fcd4b> <http://acme.test/prop/statement/P2> <http://acme.test/Q666> . <http://acme.test/statement/TEST-Statement-2-475ae31b07cff4f0e33531030b1ba58f004fcd4b> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.wikidata.org/ontology-beta#Statement> . <http://acme.test/statement/TEST-Statement-2-475ae31b07cff4f0e33531030b1ba58f004fcd4b> <http://www.wikidata.org/ontology-beta#rank> <http://www.wikidata.org/ontology-beta#NormalRank> . -<http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://acme.test/prop/statement/P3> <http://www.wikidata.org/ontology-beta#Novalue> . +<http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://acme.test/prop/novalue/P3> . <http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.wikidata.org/ontology-beta#Statement> . <http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.wikidata.org/ontology-beta#rank> <http://www.wikidata.org/ontology-beta#BestRank> . <http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.wikidata.org/ontology-beta#rank> <http://www.wikidata.org/ontology-beta#NormalRank> . diff --git a/repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q4_values.nt b/repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q4_values.nt index c9cb9dd..7686ef7 100644 --- a/repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q4_values.nt +++ b/repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q4_values.nt @@ -17,7 +17,7 @@ <http://acme.test/statement/TEST-Statement-2-475ae31b07cff4f0e33531030b1ba58f004fcd4b> <http://acme.test/prop/statement/P2> <http://acme.test/Q666> . <http://acme.test/statement/TEST-Statement-2-475ae31b07cff4f0e33531030b1ba58f004fcd4b> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.wikidata.org/ontology-beta#Statement> . <http://acme.test/statement/TEST-Statement-2-475ae31b07cff4f0e33531030b1ba58f004fcd4b> <http://www.wikidata.org/ontology-beta#rank> <http://www.wikidata.org/ontology-beta#NormalRank> . -<http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://acme.test/prop/statement/P3> <http://www.wikidata.org/ontology-beta#Novalue> . +<http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://acme.test/prop/novalue/P3> . <http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.wikidata.org/ontology-beta#Statement> . <http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.wikidata.org/ontology-beta#rank> <http://www.wikidata.org/ontology-beta#BestRank> . <http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.wikidata.org/ontology-beta#rank> <http://www.wikidata.org/ontology-beta#NormalRank> . diff --git a/repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q6_with_qualifiers.nt b/repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q6_with_qualifiers.nt index 3b0673e..9492c96 100644 --- a/repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q6_with_qualifiers.nt +++ b/repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q6_with_qualifiers.nt @@ -2,7 +2,7 @@ <http://acme.test/statement/TEST-Qualifiers> <http://acme.test/prop/qualifier/P2> <http://acme.test/Q42> . <http://acme.test/statement/TEST-Qualifiers> <http://acme.test/prop/qualifier/P2> <http://acme.test/Q666> . <http://acme.test/statement/TEST-Qualifiers> <http://acme.test/prop/qualifier/P3> <http://commons.wikimedia.org/wiki/Special:FilePath/Universe.svg> . -<http://acme.test/statement/TEST-Qualifiers> <http://acme.test/prop/qualifier/P3> <http://www.wikidata.org/ontology-beta#Novalue> . +<http://acme.test/statement/TEST-Qualifiers> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://acme.test/prop/novalue/P3> . <http://acme.test/statement/TEST-Qualifiers> <http://acme.test/prop/qualifier/P4> "Point(12.345 67.89)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://acme.test/statement/TEST-Qualifiers> <http://acme.test/prop/qualifier/P5> "\u0431\u0440\u0435\u0434"@ru . <http://acme.test/statement/TEST-Qualifiers> <http://acme.test/prop/qualifier/P5> "\u043F\u0440\u0435\u0432\u0435\u0434"@ru . diff --git a/repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q7_refs.nt b/repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q7_refs.nt index d95e3bb..9e7c2d2 100644 --- a/repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q7_refs.nt +++ b/repo/tests/phpunit/data/rdf/FullStatementRdfBuilder/Q7_refs.nt @@ -6,8 +6,8 @@ <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P2> <http://acme.test/Q666> . <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P3> <http://commons.wikimedia.org/wiki/Special:FilePath/Universe.svg> . <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P3> <http://commons.wikimedia.org/wiki/Special:FilePath/Universe.svg> . -<http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P3> <http://www.wikidata.org/ontology-beta#Novalue> . -<http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P3> <http://www.wikidata.org/ontology-beta#Novalue> . +<http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://acme.test/prop/novalue/P3> . +<http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://acme.test/prop/novalue/P3> . <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P4> "Point(12.345 67.89)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P4> "Point(12.345 67.89)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P5> "\u0431\u0440\u0435\u0434"@ru . diff --git a/repo/tests/phpunit/data/rdf/Q4_all_statements.nt b/repo/tests/phpunit/data/rdf/Q4_all_statements.nt index 25b1c10..5817b4e 100644 --- a/repo/tests/phpunit/data/rdf/Q4_all_statements.nt +++ b/repo/tests/phpunit/data/rdf/Q4_all_statements.nt @@ -18,7 +18,7 @@ <http://acme.test/statement/TEST-Statement-2-475ae31b07cff4f0e33531030b1ba58f004fcd4b> <http://acme.test/prop/statement/P2> <http://acme.test/Q666> . <http://acme.test/statement/TEST-Statement-2-475ae31b07cff4f0e33531030b1ba58f004fcd4b> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.wikidata.org/ontology-beta#Statement> . <http://acme.test/statement/TEST-Statement-2-475ae31b07cff4f0e33531030b1ba58f004fcd4b> <http://www.wikidata.org/ontology-beta#rank> <http://www.wikidata.org/ontology-beta#NormalRank> . -<http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://acme.test/prop/statement/P3> <http://www.wikidata.org/ontology-beta#Novalue> . +<http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://acme.test/prop/novalue/P3> . <http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.wikidata.org/ontology-beta#Statement> . <http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.wikidata.org/ontology-beta#rank> <http://www.wikidata.org/ontology-beta#NormalRank> . <http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.wikidata.org/ontology-beta#rank> <http://www.wikidata.org/ontology-beta#BestRank> . diff --git a/repo/tests/phpunit/data/rdf/Q4_claims.nt b/repo/tests/phpunit/data/rdf/Q4_claims.nt index 39c35dd..15f97b5 100644 --- a/repo/tests/phpunit/data/rdf/Q4_claims.nt +++ b/repo/tests/phpunit/data/rdf/Q4_claims.nt @@ -12,7 +12,7 @@ <http://acme.test/Q4> <http://acme.test/prop/P9> <http://acme.test/statement/TEST-Statement-9-2669d541dfd2d6cc0105927bff02bbe0eec0e921> . <http://acme.test/Q4> <http://acme.test/prop/direct/P2> <http://acme.test/Q42> . <http://acme.test/Q4> <http://acme.test/prop/direct/P3> <http://commons.wikimedia.org/wiki/Special:FilePath/Universe.svg> . -<http://acme.test/Q4> <http://acme.test/prop/direct/P3> <http://www.wikidata.org/ontology-beta#Novalue> . +<http://acme.test/Q4> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://acme.test/prop/novalue/P3> . <http://acme.test/Q4> <http://acme.test/prop/direct/P4> "Point(12.345 67.89)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://acme.test/Q4> <http://acme.test/prop/direct/P5> "\u043F\u0440\u0435\u0432\u0435\u0434"@ru . <http://acme.test/Q4> <http://acme.test/prop/direct/P5> _:genid1 . @@ -28,7 +28,7 @@ <http://acme.test/statement/TEST-Statement-2-475ae31b07cff4f0e33531030b1ba58f004fcd4b> <http://acme.test/prop/statement/P2> <http://acme.test/Q666> . <http://acme.test/statement/TEST-Statement-2-475ae31b07cff4f0e33531030b1ba58f004fcd4b> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.wikidata.org/ontology-beta#Statement> . <http://acme.test/statement/TEST-Statement-2-475ae31b07cff4f0e33531030b1ba58f004fcd4b> <http://www.wikidata.org/ontology-beta#rank> <http://www.wikidata.org/ontology-beta#NormalRank> . -<http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://acme.test/prop/statement/P3> <http://www.wikidata.org/ontology-beta#Novalue> . +<http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://acme.test/prop/novalue/P3> . <http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.wikidata.org/ontology-beta#Statement> . <http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.wikidata.org/ontology-beta#rank> <http://www.wikidata.org/ontology-beta#NormalRank> . <http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.wikidata.org/ontology-beta#rank> <http://www.wikidata.org/ontology-beta#BestRank> . diff --git a/repo/tests/phpunit/data/rdf/Q4_props.nt b/repo/tests/phpunit/data/rdf/Q4_props.nt index fe904b7..78c7aab 100644 --- a/repo/tests/phpunit/data/rdf/Q4_props.nt +++ b/repo/tests/phpunit/data/rdf/Q4_props.nt @@ -18,7 +18,7 @@ <http://acme.test/statement/TEST-Statement-2-475ae31b07cff4f0e33531030b1ba58f004fcd4b> <http://acme.test/prop/statement/P2> <http://acme.test/Q666> . <http://acme.test/statement/TEST-Statement-2-475ae31b07cff4f0e33531030b1ba58f004fcd4b> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.wikidata.org/ontology-beta#Statement> . <http://acme.test/statement/TEST-Statement-2-475ae31b07cff4f0e33531030b1ba58f004fcd4b> <http://www.wikidata.org/ontology-beta#rank> <http://www.wikidata.org/ontology-beta#NormalRank> . -<http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://acme.test/prop/statement/P3> <http://www.wikidata.org/ontology-beta#Novalue> . +<http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://acme.test/prop/novalue/P3> . <http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.wikidata.org/ontology-beta#Statement> . <http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.wikidata.org/ontology-beta#rank> <http://www.wikidata.org/ontology-beta#NormalRank> . <http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.wikidata.org/ontology-beta#rank> <http://www.wikidata.org/ontology-beta#BestRank> . @@ -165,3 +165,51 @@ <http://acme.test/P9> <http://www.wikidata.org/ontology-beta#referenceValue> <http://acme.test/prop/reference/value/P9> . <http://acme.test/P9> <http://www.wikidata.org/ontology-beta#statementProperty> <http://acme.test/prop/statement/P9> . <http://acme.test/P9> <http://www.wikidata.org/ontology-beta#statementValue> <http://acme.test/prop/statement/value/P9> . +<http://acme.test/P2> <http://www.wikidata.org/ontology-beta#novalue> <http://acme.test/prop/novalue/P2> . +<http://acme.test/P3> <http://www.wikidata.org/ontology-beta#novalue> <http://acme.test/prop/novalue/P3> . +<http://acme.test/P4> <http://www.wikidata.org/ontology-beta#novalue> <http://acme.test/prop/novalue/P4> . +<http://acme.test/P5> <http://www.wikidata.org/ontology-beta#novalue> <http://acme.test/prop/novalue/P5> . +<http://acme.test/P6> <http://www.wikidata.org/ontology-beta#novalue> <http://acme.test/prop/novalue/P6> . +<http://acme.test/P7> <http://www.wikidata.org/ontology-beta#novalue> <http://acme.test/prop/novalue/P7> . +<http://acme.test/P8> <http://www.wikidata.org/ontology-beta#novalue> <http://acme.test/prop/novalue/P8> . +<http://acme.test/P9> <http://www.wikidata.org/ontology-beta#novalue> <http://acme.test/prop/novalue/P9> . +<http://acme.test/prop/novalue/P2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class> . +<http://acme.test/prop/novalue/P2> <http://www.w3.org/2002/07/owl#complementOf> _:genid2 . +<http://acme.test/prop/novalue/P3> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class> . +<http://acme.test/prop/novalue/P3> <http://www.w3.org/2002/07/owl#complementOf> _:genid3 . +<http://acme.test/prop/novalue/P4> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class> . +<http://acme.test/prop/novalue/P4> <http://www.w3.org/2002/07/owl#complementOf> _:genid4 . +<http://acme.test/prop/novalue/P5> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class> . +<http://acme.test/prop/novalue/P5> <http://www.w3.org/2002/07/owl#complementOf> _:genid5 . +<http://acme.test/prop/novalue/P6> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class> . +<http://acme.test/prop/novalue/P6> <http://www.w3.org/2002/07/owl#complementOf> _:genid6 . +<http://acme.test/prop/novalue/P7> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class> . +<http://acme.test/prop/novalue/P7> <http://www.w3.org/2002/07/owl#complementOf> _:genid7 . +<http://acme.test/prop/novalue/P8> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class> . +<http://acme.test/prop/novalue/P8> <http://www.w3.org/2002/07/owl#complementOf> _:genid8 . +<http://acme.test/prop/novalue/P9> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class> . +<http://acme.test/prop/novalue/P9> <http://www.w3.org/2002/07/owl#complementOf> _:genid9 . +_:genid2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Restriction> . +_:genid2 <http://www.w3.org/2002/07/owl#onProperty> <http://acme.test/prop/direct/P2> . +_:genid2 <http://www.w3.org/2002/07/owl#someValuesFrom> <http://www.w3.org/2002/07/owl#Thing> . +_:genid3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Restriction> . +_:genid3 <http://www.w3.org/2002/07/owl#onProperty> <http://acme.test/prop/direct/P3> . +_:genid3 <http://www.w3.org/2002/07/owl#someValuesFrom> <http://www.w3.org/2002/07/owl#Thing> . +_:genid4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Restriction> . +_:genid4 <http://www.w3.org/2002/07/owl#onProperty> <http://acme.test/prop/direct/P4> . +_:genid4 <http://www.w3.org/2002/07/owl#someValuesFrom> <http://www.w3.org/2002/07/owl#Thing> . +_:genid5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Restriction> . +_:genid5 <http://www.w3.org/2002/07/owl#onProperty> <http://acme.test/prop/direct/P5> . +_:genid5 <http://www.w3.org/2002/07/owl#someValuesFrom> <http://www.w3.org/2002/07/owl#Thing> . +_:genid6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Restriction> . +_:genid6 <http://www.w3.org/2002/07/owl#onProperty> <http://acme.test/prop/direct/P6> . +_:genid6 <http://www.w3.org/2002/07/owl#someValuesFrom> <http://www.w3.org/2002/07/owl#Thing> . +_:genid7 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Restriction> . +_:genid7 <http://www.w3.org/2002/07/owl#onProperty> <http://acme.test/prop/direct/P7> . +_:genid7 <http://www.w3.org/2002/07/owl#someValuesFrom> <http://www.w3.org/2002/07/owl#Thing> . +_:genid8 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Restriction> . +_:genid8 <http://www.w3.org/2002/07/owl#onProperty> <http://acme.test/prop/direct/P8> . +_:genid8 <http://www.w3.org/2002/07/owl#someValuesFrom> <http://www.w3.org/2002/07/owl#Thing> . +_:genid9 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Restriction> . +_:genid9 <http://www.w3.org/2002/07/owl#onProperty> <http://acme.test/prop/direct/P9> . +_:genid9 <http://www.w3.org/2002/07/owl#someValuesFrom> <http://www.w3.org/2002/07/owl#Thing> . diff --git a/repo/tests/phpunit/data/rdf/Q4_resolved.nt b/repo/tests/phpunit/data/rdf/Q4_resolved.nt index 721cda3..acc6b87 100644 --- a/repo/tests/phpunit/data/rdf/Q4_resolved.nt +++ b/repo/tests/phpunit/data/rdf/Q4_resolved.nt @@ -1,6 +1,6 @@ <http://acme.test/Q4> <http://acme.test/prop/direct/P2> <http://acme.test/Q42> . <http://acme.test/Q4> <http://acme.test/prop/direct/P3> <http://commons.wikimedia.org/wiki/Special:FilePath/Universe.svg> . -<http://acme.test/Q4> <http://acme.test/prop/direct/P3> <http://www.wikidata.org/ontology-beta#Novalue> . +<http://acme.test/Q4> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://acme.test/prop/novalue/P3> . <http://acme.test/Q4> <http://acme.test/prop/direct/P4> "Point(12.345 67.89)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://acme.test/Q4> <http://acme.test/prop/direct/P5> "\u043F\u0440\u0435\u0432\u0435\u0434"@ru . <http://acme.test/Q4> <http://acme.test/prop/direct/P5> _:genid1 . diff --git a/repo/tests/phpunit/data/rdf/Q4_truthy_statements.nt b/repo/tests/phpunit/data/rdf/Q4_truthy_statements.nt index 8ed708d..e1ae1fe 100644 --- a/repo/tests/phpunit/data/rdf/Q4_truthy_statements.nt +++ b/repo/tests/phpunit/data/rdf/Q4_truthy_statements.nt @@ -1,6 +1,6 @@ <http://acme.test/Q4> <http://acme.test/prop/direct/P2> <http://acme.test/Q42> . <http://acme.test/Q4> <http://acme.test/prop/direct/P3> <http://commons.wikimedia.org/wiki/Special:FilePath/Universe.svg> . -<http://acme.test/Q4> <http://acme.test/prop/direct/P3> <http://www.wikidata.org/ontology-beta#Novalue> . +<http://acme.test/Q4> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://acme.test/prop/novalue/P3> . <http://acme.test/Q4> <http://acme.test/prop/direct/P4> "Point(12.345 67.89)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://acme.test/Q4> <http://acme.test/prop/direct/P5> "\u043F\u0440\u0435\u0432\u0435\u0434"@ru . <http://acme.test/Q4> <http://acme.test/prop/direct/P5> _:genid1 . diff --git a/repo/tests/phpunit/data/rdf/Q4_values.nt b/repo/tests/phpunit/data/rdf/Q4_values.nt index 89249db..3c10d76 100644 --- a/repo/tests/phpunit/data/rdf/Q4_values.nt +++ b/repo/tests/phpunit/data/rdf/Q4_values.nt @@ -18,7 +18,7 @@ <http://acme.test/statement/TEST-Statement-2-475ae31b07cff4f0e33531030b1ba58f004fcd4b> <http://acme.test/prop/statement/P2> <http://acme.test/Q666> . <http://acme.test/statement/TEST-Statement-2-475ae31b07cff4f0e33531030b1ba58f004fcd4b> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.wikidata.org/ontology-beta#Statement> . <http://acme.test/statement/TEST-Statement-2-475ae31b07cff4f0e33531030b1ba58f004fcd4b> <http://www.wikidata.org/ontology-beta#rank> <http://www.wikidata.org/ontology-beta#NormalRank> . -<http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://acme.test/prop/statement/P3> <http://www.wikidata.org/ontology-beta#Novalue> . +<http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://acme.test/prop/novalue/P3> . <http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.wikidata.org/ontology-beta#Statement> . <http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.wikidata.org/ontology-beta#rank> <http://www.wikidata.org/ontology-beta#NormalRank> . <http://acme.test/statement/TEST-Statement-3-12914044e0dbab210aa9d81168bd50471bbde12d> <http://www.wikidata.org/ontology-beta#rank> <http://www.wikidata.org/ontology-beta#BestRank> . diff --git a/repo/tests/phpunit/data/rdf/Q6_qualifiers.nt b/repo/tests/phpunit/data/rdf/Q6_qualifiers.nt index 097ab3a..4fdd73b 100644 --- a/repo/tests/phpunit/data/rdf/Q6_qualifiers.nt +++ b/repo/tests/phpunit/data/rdf/Q6_qualifiers.nt @@ -4,7 +4,7 @@ <http://acme.test/statement/TEST-Qualifiers> <http://acme.test/prop/qualifier/P2> <http://acme.test/Q42> . <http://acme.test/statement/TEST-Qualifiers> <http://acme.test/prop/qualifier/P2> <http://acme.test/Q666> . <http://acme.test/statement/TEST-Qualifiers> <http://acme.test/prop/qualifier/P3> <http://commons.wikimedia.org/wiki/Special:FilePath/Universe.svg> . -<http://acme.test/statement/TEST-Qualifiers> <http://acme.test/prop/qualifier/P3> <http://www.wikidata.org/ontology-beta#Novalue> . +<http://acme.test/statement/TEST-Qualifiers> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://acme.test/prop/novalue/P3> . <http://acme.test/statement/TEST-Qualifiers> <http://acme.test/prop/qualifier/value/P4> <http://acme.test/value/aad6b70bccf9875ba61d31c767b7f652> . <http://acme.test/statement/TEST-Qualifiers> <http://acme.test/prop/qualifier/P4> "Point(12.345 67.89)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://acme.test/statement/TEST-Qualifiers> <http://acme.test/prop/qualifier/P5> "\u0431\u0440\u0435\u0434"@ru . diff --git a/repo/tests/phpunit/data/rdf/Q6_with_qualifiers.nt b/repo/tests/phpunit/data/rdf/Q6_with_qualifiers.nt index d2af2cf..7e236df 100644 --- a/repo/tests/phpunit/data/rdf/Q6_with_qualifiers.nt +++ b/repo/tests/phpunit/data/rdf/Q6_with_qualifiers.nt @@ -3,7 +3,7 @@ <http://acme.test/statement/TEST-Qualifiers> <http://acme.test/prop/qualifier/P2> <http://acme.test/Q42> . <http://acme.test/statement/TEST-Qualifiers> <http://acme.test/prop/qualifier/P2> <http://acme.test/Q666> . <http://acme.test/statement/TEST-Qualifiers> <http://acme.test/prop/qualifier/P3> <http://commons.wikimedia.org/wiki/Special:FilePath/Universe.svg> . -<http://acme.test/statement/TEST-Qualifiers> <http://acme.test/prop/qualifier/P3> <http://www.wikidata.org/ontology-beta#Novalue> . +<http://acme.test/statement/TEST-Qualifiers> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://acme.test/prop/novalue/P3> . <http://acme.test/statement/TEST-Qualifiers> <http://acme.test/prop/qualifier/P4> "Point(12.345 67.89)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://acme.test/statement/TEST-Qualifiers> <http://acme.test/prop/qualifier/P5> "\u0431\u0440\u0435\u0434"@ru . <http://acme.test/statement/TEST-Qualifiers> <http://acme.test/prop/qualifier/P5> "\u043F\u0440\u0435\u0432\u0435\u0434"@ru . diff --git a/repo/tests/phpunit/data/rdf/Q7_Q9_dedup.nt b/repo/tests/phpunit/data/rdf/Q7_Q9_dedup.nt index 89e1199..b5a6f3d 100644 --- a/repo/tests/phpunit/data/rdf/Q7_Q9_dedup.nt +++ b/repo/tests/phpunit/data/rdf/Q7_Q9_dedup.nt @@ -11,7 +11,7 @@ <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P2> <http://acme.test/Q42> . <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P2> <http://acme.test/Q666> . <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P3> <http://commons.wikimedia.org/wiki/Special:FilePath/Universe.svg> . -<http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P3> <http://www.wikidata.org/ontology-beta#Novalue> . +<http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://acme.test/prop/novalue/P3> . <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/value/P4> <http://acme.test/value/aad6b70bccf9875ba61d31c767b7f652> . <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P4> "Point(12.345 67.89)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P5> "\u0431\u0440\u0435\u0434"@ru . diff --git a/repo/tests/phpunit/data/rdf/Q7_references.nt b/repo/tests/phpunit/data/rdf/Q7_references.nt index c10223c..9fe57b3 100644 --- a/repo/tests/phpunit/data/rdf/Q7_references.nt +++ b/repo/tests/phpunit/data/rdf/Q7_references.nt @@ -6,7 +6,7 @@ <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P2> <http://acme.test/Q42> . <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P2> <http://acme.test/Q666> . <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P3> <http://commons.wikimedia.org/wiki/Special:FilePath/Universe.svg> . -<http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P3> <http://www.wikidata.org/ontology-beta#Novalue> . +<http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://acme.test/prop/novalue/P3> . <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/value/P4> <http://acme.test/value/aad6b70bccf9875ba61d31c767b7f652> . <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P4> "Point(12.345 67.89)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P5> "\u0431\u0440\u0435\u0434"@ru . diff --git a/repo/tests/phpunit/data/rdf/Q7_refs.nt b/repo/tests/phpunit/data/rdf/Q7_refs.nt index 10992fb..564a1b6 100644 --- a/repo/tests/phpunit/data/rdf/Q7_refs.nt +++ b/repo/tests/phpunit/data/rdf/Q7_refs.nt @@ -4,7 +4,7 @@ <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P2> <http://acme.test/Q42> . <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P2> <http://acme.test/Q666> . <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P3> <http://commons.wikimedia.org/wiki/Special:FilePath/Universe.svg> . -<http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P3> <http://www.wikidata.org/ontology-beta#Novalue> . +<http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://acme.test/prop/novalue/P3> . <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P4> "Point(12.345 67.89)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P5> "\u0431\u0440\u0435\u0434"@ru . <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P5> "\u043F\u0440\u0435\u0432\u0435\u0434"@ru . diff --git a/repo/tests/phpunit/data/rdf/TruthyStatementRdfBuilder/Q4_statements.nt b/repo/tests/phpunit/data/rdf/TruthyStatementRdfBuilder/Q4_statements.nt index a9743d0..08e7807 100644 --- a/repo/tests/phpunit/data/rdf/TruthyStatementRdfBuilder/Q4_statements.nt +++ b/repo/tests/phpunit/data/rdf/TruthyStatementRdfBuilder/Q4_statements.nt @@ -1,6 +1,6 @@ <http://acme.test/Q4> <http://acme.test/prop/direct/P2> <http://acme.test/Q42> . <http://acme.test/Q4> <http://acme.test/prop/direct/P3> <http://commons.wikimedia.org/wiki/Special:FilePath/Universe.svg> . -<http://acme.test/Q4> <http://acme.test/prop/direct/P3> <http://www.wikidata.org/ontology-beta#Novalue> . +<http://acme.test/Q4> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://acme.test/prop/novalue/P3> . <http://acme.test/Q4> <http://acme.test/prop/direct/P4> "Point(12.345 67.89)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://acme.test/Q4> <http://acme.test/prop/direct/P5> "\u043F\u0440\u0435\u0432\u0435\u0434"@ru . <http://acme.test/Q4> <http://acme.test/prop/direct/P5> _:genid1 . diff --git a/repo/tests/phpunit/data/rdf/dump_entities.nt b/repo/tests/phpunit/data/rdf/dump_entities.nt index 6273c7b..60377d9 100644 --- a/repo/tests/phpunit/data/rdf/dump_entities.nt +++ b/repo/tests/phpunit/data/rdf/dump_entities.nt @@ -30,3 +30,9 @@ <http://acme.test/P10> <http://www.wikidata.org/ontology-beta#referenceValue> <http://acme.test/prop/reference/value/P10> . <http://acme.test/P10> <http://www.wikidata.org/ontology-beta#statementProperty> <http://acme.test/prop/statement/P10> . <http://acme.test/P10> <http://www.wikidata.org/ontology-beta#statementValue> <http://acme.test/prop/statement/value/P10> . +<http://acme.test/P10> <http://www.wikidata.org/ontology-beta#novalue> <http://acme.test/prop/novalue/P10> . +<http://acme.test/prop/novalue/P10> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class> . +<http://acme.test/prop/novalue/P10> <http://www.w3.org/2002/07/owl#complementOf> _:genid1 . +_:genid1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Restriction> . +_:genid1 <http://www.w3.org/2002/07/owl#onProperty> <http://acme.test/prop/direct/P10> . +_:genid1 <http://www.w3.org/2002/07/owl#someValuesFrom> <http://www.w3.org/2002/07/owl#Thing> . diff --git a/repo/tests/phpunit/data/rdf/dump_refs.nt b/repo/tests/phpunit/data/rdf/dump_refs.nt index 8cb8915..1fc0177 100644 --- a/repo/tests/phpunit/data/rdf/dump_refs.nt +++ b/repo/tests/phpunit/data/rdf/dump_refs.nt @@ -11,7 +11,7 @@ <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P2> <http://acme.test/Q42> . <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P2> <http://acme.test/Q666> . <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P3> "Universe.svg" . -<http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P3> <http://www.wikidata.org/ontology-beta#Novalue> . +<http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://acme.test/prop/novalue/P3> . <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/value/P4> <http://acme.test/value/aad6b70bccf9875ba61d31c767b7f652> . <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P4> "Point(12.345 67.89)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://acme.test/reference/569a639de6dc67beb02644abfcf55534cb2f51ce> <http://acme.test/prop/reference/P5> "\u0431\u0440\u0435\u0434"@ru . -- To view, visit https://gerrit.wikimedia.org/r/206955 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I4e0b001a056541a10550d3f85a51b6ed79ab86d1 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: Smalyshev <smalys...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits