Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding an option for Halyard Stats to calculate/update statistics of …
…a particular named graph context
- Loading branch information
Adam Sotona
committed
Aug 23, 2018
1 parent
d91ede7
commit dc6a572
Showing
7 changed files
with
233 additions
and
15 deletions.
There are no files selected for viewing
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
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
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
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
16 changes: 16 additions & 0 deletions
16
tools/src/test/resources/com/msd/gin/halyard/tools/testMoreData.trig
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,16 @@ | ||
@prefix : <http://whatever/> . | ||
{ | ||
:subjA :predB "whatever value ABC". | ||
} | ||
|
||
:graph0 { | ||
:subjA :predB "whatever value ABC". | ||
} | ||
|
||
:graph1 { | ||
:subjA :predB "whatever value ABC". | ||
} | ||
|
||
:graph2 { | ||
:subjA :predB "whatever value ABC". | ||
} |
66 changes: 66 additions & 0 deletions
66
tools/src/test/resources/com/msd/gin/halyard/tools/testStatsMoreTarget.trig
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,66 @@ | ||
@prefix : <http://whatever/> . | ||
@prefix halyard: <http://merck.github.io/Halyard/ns#> . | ||
@prefix void: <http://rdfs.org/ns/void#> . | ||
@prefix void-ext: <http://ldf.fi/void-ext#> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
|
||
halyard:statsContext { | ||
halyard:statsRoot a void:Dataset , sd:Dataset , sd:Graph ; | ||
sd:defaultGraph halyard:statsRoot ; | ||
sd:namedGraph :graph0 , :graph1 , :graph2 ; | ||
void:classes "1000"^^xsd:long ; | ||
void:triples "2001"^^xsd:long ; | ||
void:propertyPartition halyard:statsRoot_property_v0EPmHVxqhkyM3Yh_Wfu7gMOZGU ; | ||
void:properties "14"^^xsd:long ; | ||
void-ext:distinctLiterals "857"^^xsd:long ; | ||
void:distinctObjects "1957"^^xsd:long ; | ||
void:distinctSubjects "191"^^xsd:long ; | ||
void-ext:distinctBlankNodeObjects "100"^^xsd:long ; | ||
void-ext:distinctBlankNodeSubjects "91"^^xsd:long ; | ||
void-ext:distinctIRIReferenceObjects "1000"^^xsd:long ; | ||
void-ext:distinctIRIReferenceSubjects "100"^^xsd:long . | ||
|
||
:graph0 sd:name :graph0 ; | ||
sd:graph :graph0 ; | ||
a sd:NamedGraph , sd:Graph , void:Dataset ; | ||
void:classes "450"^^xsd:long ; | ||
void:triples "900"^^xsd:long ; | ||
void:propertyPartition :graph0_property_v0EPmHVxqhkyM3Yh_Wfu7gMOZGU ; | ||
void:properties "14"^^xsd:long ; | ||
void-ext:distinctLiterals "386"^^xsd:long ; | ||
void:distinctObjects "886"^^xsd:long ; | ||
void:distinctSubjects "91"^^xsd:long ; | ||
void-ext:distinctBlankNodeObjects "50"^^xsd:long ; | ||
void-ext:distinctBlankNodeSubjects "41"^^xsd:long ; | ||
void-ext:distinctIRIReferenceObjects "450"^^xsd:long ; | ||
void-ext:distinctIRIReferenceSubjects "50"^^xsd:long . | ||
|
||
:graph0_property_v0EPmHVxqhkyM3Yh_Wfu7gMOZGU a void:Dataset ; | ||
void:property rdf:type ; | ||
void:triples "450"^^xsd:long . | ||
|
||
:graph1 sd:name :graph1 ; | ||
sd:graph :graph1 ; | ||
a sd:NamedGraph , sd:Graph , void:Dataset ; | ||
void:classes "450"^^xsd:long ; | ||
void:triples "901"^^xsd:long ; | ||
void:propertyPartition :graph1_property_v0EPmHVxqhkyM3Yh_Wfu7gMOZGU ; | ||
void:properties "15"^^xsd:long ; | ||
void-ext:distinctLiterals "387"^^xsd:long ; | ||
void:distinctObjects "887"^^xsd:long ; | ||
void:distinctSubjects "91"^^xsd:long ; | ||
void-ext:distinctBlankNodeObjects "50"^^xsd:long ; | ||
void-ext:distinctBlankNodeSubjects "40"^^xsd:long ; | ||
void-ext:distinctIRIReferenceObjects "450"^^xsd:long ; | ||
void-ext:distinctIRIReferenceSubjects "51"^^xsd:long . | ||
|
||
:graph1_property_v0EPmHVxqhkyM3Yh_Wfu7gMOZGU a void:Dataset ; | ||
void:property rdf:type ; | ||
void:triples "450"^^xsd:long . | ||
|
||
halyard:statsRoot_property_v0EPmHVxqhkyM3Yh_Wfu7gMOZGU a void:Dataset ; | ||
void:property rdf:type ; | ||
void:triples "1000"^^xsd:long . | ||
} |
Oops, something went wrong.