amalgame/commit

FIXED: xsd:int type error

authorJacco van Ossenbruggen
Sun Mar 29 15:47:49 2020 +0200
committerJacco van Ossenbruggen
Sun Mar 29 15:48:26 2020 +0200
commit6eebaeb11b3b3125cba485d027b5794992797b0d
treec1d72d3b71337761f4202c16377a325263f23696
parent287034ed9de28f7e83f0e4568029941e4c6dbb00
Diff style: patch stat
diff --git a/lib/amalgame/ag_provenance.pl b/lib/amalgame/ag_provenance.pl
index 85a908a..7c4cfb7 100644
--- a/lib/amalgame/ag_provenance.pl
+++ b/lib/amalgame/ag_provenance.pl
@@ -352,7 +352,7 @@ prov_named_graph(NG, Repo, Graph) :-
 
 	rdf_assert(NG, amalgame:hash, NGHash^^xsd:string, Graph),
 	rdf_assert(NG, amalgame:modified_after_loading, NGModified^^xsd:string, Graph),
-	rdf_assert(NG, amalgame:triples, NGCount^^xsd:int, Graph),
+	rdf_assert(NG, amalgame:triples, NGCount, Graph),
 	rdf_assert(NG, rdfs:comment, "This named graph was loaded into the triple store during the alignment process. It may or may not have influenced the results."@en, Graph).
 
 
@@ -389,7 +389,7 @@ assert_count(VocUri, Strategy, ProvGraph) :-
 	node_stats(Strategy, VocUri, Stats, []),
 	option(totalCount(Count), Stats),
 	rdf_retractall(VocUri, amalgame:totalCount, _, ProvGraph),
-	rdf_assert(VocUri, amalgame:totalCount, Count^^xsd:int, ProvGraph).
+	rdf_assert(VocUri, amalgame:totalCount, Count, ProvGraph).
 
 assert_count(MapUri, Strategy, ProvGraph) :-
 	rdfs_individual_of(MapUri, amalgame:'Mapping'),!,
@@ -401,9 +401,9 @@ assert_count(MapUri, Strategy, ProvGraph) :-
 	rdf_retractall(MapUri, amalgame:mappedSourceConcepts, _, ProvGraph),
 	rdf_retractall(MapUri, amalgame:mappedTargetConcepts, _, ProvGraph),
 
-	rdf_assert(MapUri, amalgame:totalCount,       Count^^xsd:int, ProvGraph),
-	rdf_assert(MapUri, amalgame:mappedSourceConcepts, SN^^xsd:int, ProvGraph),
-	rdf_assert(MapUri, amalgame:mappedTargetConcepts, TN^^xsd:int, ProvGraph).
+	rdf_assert(MapUri, amalgame:totalCount,       Count, ProvGraph),
+	rdf_assert(MapUri, amalgame:mappedSourceConcepts, SN, ProvGraph),
+	rdf_assert(MapUri, amalgame:mappedTargetConcepts, TN, ProvGraph).
 
 
 %%	is_amalgame_graph(?G) is nondet
diff --git a/lib/amalgame/ag_publish.pl b/lib/amalgame/ag_publish.pl
index 0ee6e21..b12731b 100644
--- a/lib/amalgame/ag_publish.pl
+++ b/lib/amalgame/ag_publish.pl
@@ -141,7 +141,7 @@ assert_void(Id,Options) :-
 	;   true
 	),
 	rdf_assert(Id, rdf:type,          Type,  Void),
-	rdf_assert(Id, void:triples,      NrOfTriples^^xsd:int, Void),
+	rdf_assert(Id, void:triples,      NrOfTriples, Void),
 
 	rdf_assert(Id, amalgame:hasPlan,  Strategy, Void),
 	rdf_assert(Id, amalgame:prov,	  ProvGraph, Void).
diff --git a/rdf/tool/amalgame.ttl b/rdf/tool/amalgame.ttl
index 4a38f6d..1cefaad 100644
--- a/rdf/tool/amalgame.ttl
+++ b/rdf/tool/amalgame.ttl
@@ -12,7 +12,7 @@
 amalgame:AlignmentStrategy
     a prov:Plan ;
     rdfs:label "Alignment strategy"@en ;
-    rdfs:comment "RDF representation of an alignment strategy that can be loaded into, and executed by, Amalgame"@en.
+    rdfs:comment "RDF representation of an alignment strategy that can be loaded into, and executed by, amalgame"@en.
 
 amalgame:Entity
     rdfs:label "Entity"@en ;
@@ -32,7 +32,7 @@ amalgame:Partitioner
 amalgame:CandidateGenerator
     rdfs:label "Candidate generator"@en ;
     rdfs:comment "A process that generates a mapping with candidate correspondences."@en ;
-    rdfs:subClassOf amalgame:Process . 
+    rdfs:subClassOf amalgame:Process .
 
 amalgame:MappingPartitioner
     rdfs:label "Mapping partitioner"@en ;
@@ -44,7 +44,7 @@ amalgame:VocabPartitioner
     skos:definition "Component that creates subsets from an existing concept scheme"@en ;
     rdfs:subClassOf amalgame:Partitioner .
 
-amalgame:VirtualVocabPartitioner 
+amalgame:VirtualVocabPartitioner
     rdfs:label "Virtual vocabulary partitioner"@en ;
     skos:definition "Component that creates virtual subsets from an existing concept scheme"@en ;
     skos:note "A virtual scheme is defined intentionally, not materialized in the store. Amalgame can iterate over all its 'inScheme' members and test whether a concept is inScheme or not."@en ;
@@ -89,7 +89,7 @@ amalgame:need_secondary_inputs
 	rdfs:domain amalgame:Process ;
 	rdfs:range xsd:boolean ;
 	rdfs:comment 'True for processes that need more than the standard primary inputs associated to their type.'@en.
-amalgame:wasGeneratedBy 
+amalgame:wasGeneratedBy
 	a rdf:Property ;
 	rdfs:domain amalgame:Entity ;
 	rdfs:range amalgame:Process ;
@@ -202,15 +202,15 @@ amalgame:totalCount a rdf:Property, owl:FunctionalProperty ;
 	rdfs:label "total count" ;
 	rdfs:comment "The number of items in this dataset" ;
 	rdfs:domain amalgame:Entity ;
-	rdfs:range xsd:int .
+	rdfs:range xsd:integer .
 
 amalgame:mappedSourceConcepts a rdf:Property, owl:FunctionalProperty ;
 	rdfs:domain amalgame:Mapping ;
-	rdfs:range xsd:int .
+	rdfs:range xsd:integer .
 
 amalgame:mappedTargetConcepts a rdf:Property, owl:FunctionalProperty ;
 	rdfs:domain amalgame:Mapping ;
-	rdfs:range xsd:int .
+	rdfs:range xsd:integer .
 
 amalgame:nickname a rdf:Property , owl:FunctionalProperty ;
 	rdfs:domain amalgame:Mapping ;
@@ -229,17 +229,17 @@ amalgame:target a rdf:Property ;
 amalgame:numberOfPrefLabels a rdf:Property , owl:FunctionalProperty ;
 	rdfs:label "# pref. labels"@en;
 	rdfs:domain skos:ConceptScheme ;
-	rdfs:range xsd:int .
+	rdfs:range xsd:integer .
 
 amalgame:numberOfAltLabels a rdf:Property , owl:FunctionalProperty ;
 	rdfs:label "# alt. labels"@en;
 	rdfs:domain skos:ConceptScheme ;
-	rdfs:range xsd:int .
+	rdfs:range xsd:integer .
 
 amalgame:numberOfMappedConcepts a rdf:Property , owl:FunctionalProperty ;
 	rdfs:label "# mapped Concepts"@en;
 	rdfs:domain skos:ConceptScheme ;
-	rdfs:range xsd:int .
+	rdfs:range xsd:integer .
 
 amalgame:hasPlan a rdf:Property ;
         rdfs:label "hasPlan"@en;
@@ -266,7 +266,7 @@ amalgame:sampleMethod a rdf:Property;
 amalgame:sampleSize a rdf:Property, owl:FunctionalProperty ;
 	rdfs:label "sample size used create this sample graph"@en ;
 	rdfs:domain amalgame:Provenance ;
-	rdfs:range xsd:int .
+	rdfs:range xsd:integer .
 
 amalgame:minimalConfidence a rdf:Property, owl:FunctionalProperty ;
 	rdfs:comment "Mappings with confidence below this level have not been exported to this graph"@en ;
@@ -301,7 +301,7 @@ amalgame:intermediate a amalgame:Status ;
 amalgame:discarded a amalgame:Status ;
 	rdfs:comment "Status indicating that a Mapping has not insufficient quality to be useful, even for further processing, and can be discarded from the further analysis."@en .
 
-amalgame:publish_ns 
+amalgame:publish_ns
 	a rdf:Property ;
 	rdfs:domain amalgame:AlignmentStrategy ;
 	rdfs:comment "Namespace prefix to publish results of the strategy in"@en .