<commit_before>@prefix daq:     <http://purl.org/eis/vocab/daq#> .
@prefix ebiqm:     <http://www.diachron-fp7.eu/ebiqm#> .
@prefix owl:	 <http://www.w3.org/2002/07/owl#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfg:	 <http://www.w3.org/2004/03/trix/rdfg-1> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
@prefix qpro:     <http://purl.org/eis/vocab/qpro#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix dqm:     <http://www.diachron-fp7.eu/dqm#> .


# EBI Metrics

#Ontology Versioning Conciseness
ebiqm:hasOntologyVersionConcisenessMetric
	a	rdf:Property ;
	rdfs:subPropertyOf	daq:hasMetric ;
	rdfs:comment	"Links Conciseness Dimension with Ontology Versioning Conciseness Metric" ;
	rdfs:label	"Conciseness has extensional conciseness metric" ;
	rdfs:domain	dqm:Conciseness ;
	rdfs:range	ebiqm:OntologyVersionConcisenessMetric .	
	
ebiqm:OntologyVersionConcisenessMetric
	a	rdfs:Class ;
	rdfs:subClassOf	daq:Metric ; 
	daq:expectedDataType xsd:double ;
	rdfs:comment	"Provides a measure for checking singleton instances of the use-case specific defined owl:ontologyVersion property" ;
	rdfs:label	"Ontology version conciseness metric" .
		
		
#Obsolete Concepts in Ontology
ebiqm:hasObsoleteConceptsInOntologyMetric
	a	rdf:Property ;
	rdfs:subPropertyOf	daq:hasMetric ;
	rdfs:domain	dqm:Understandability ;
	rdfs:range	ebiqm:ObsoleteConceptsInOntologyMetric .	
	
ebiqm:ObsoleteConceptsInOntologyMetric
	a	rdfs:Class ;
	rdfs:subClassOf	daq:Metric ; 
	daq:expectedDataType xsd:double ;
	rdfs:comment	"Provides a measure for the number of classes and properties in an ontology which are marked as depricated. If an ontology is making lots of obsolete concepts between different versions, then this is an indicator that the ontology is going through a lot of changes, and is potentially in a state of poor quality" ;
	rdfs:label	"Obsolete concepts in ontology metric" .
		
#Synonym Usage in Ontology Classes
ebiqm:hasSynonymUsageMetric
	a	rdf:Property ;
	rdfs:subPropertyOf	daq:hasMetric ;
	rdfs:domain	dqm:SyntacticValidity ;
	rdfs:range	ebiqm:SynonymUsageMetric .	

ebiqm:SynonymUsageMetric
	a	rdfs:Class ;
	rdfs:subClassOf	daq:Metric ; 
	daq:expectedDataType xsd:double ;
	rdfs:comment	"Measures the number of classes which has a synonym <efo:alternative_term> described." ;
	rdfs:label	"Synonym usage metric" .
	
#POBO Definition Usage
ebiqm:hasPOBODefinitionUsageMetric
	a	rdf:Property ;
	rdfs:subPropertyOf	daq:hasMetric ;
	rdfs:domain	dqm:SyntacticValidity ;
	rdfs:range	ebiqm:POBODefinitionUsageMetric .	

ebiqm:POBODefinitionUsageMetric
	a	rdfs:Class ;
	rdfs:subClassOf	daq:Metric ; 
	daq:expectedDataType xsd:double ;
	rdfs:comment	"Provides a measure for an Ontology checking the usage of <pobo:def> in defined classes." ;
	rdfs:label	"POBO definition usage metric" .
	
ebiqm:hasDefinedOntologyAuthorMetric
	a	rdf:Property ;
	rdfs:subPropertyOf	daq:hasMetric ;
	rdfs:domain	dqm:SyntacticValidity ;
	rdfs:range	ebiqm:DefinedOntologyAuthorMetric .	

ebiqm:DefinedOntologyAuthorMetric
	a	rdfs:Class ;
	rdfs:subClassOf	daq:Metric ; 
	daq:expectedDataType xsd:double ;
	rdfs:comment	"Checks whether the creator <efo:creator> is defined in the ontology." ;
	rdfs:label	"Defined ontology author" .
	

ebiqm:OBOFoundryMetric
	a	rdfs:Class ;
	rdfs:subClassOf	daq:Metric ; 
	daq:expectedDataType xsd:double ;
	rdfs:comment "Detects non reputable resources by retrieving URI of resources from data sets and comparing them with URI found in reputable resources." ; 
	rdfs:label "OBO foundry metric" .
	
ebiqm:hasOBOFoundryMetric
	a	rdf:Property ;
	rdfs:subPropertyOf	daq:hasMetric ;
	rdfs:domain	dqm:Provenance ;
	rdfs:range	ebiqm:OBOFoundryMetric .

<commit_msg>fixed problem with failing examples<commit_after>@prefix daq:     <http://purl.org/eis/vocab/daq#> .
@prefix ebiqm:     <http://www.diachron-fp7.eu/ebiqm#> .
@prefix owl:	 <http://www.w3.org/2002/07/owl#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfg:	 <http://www.w3.org/2004/03/trix/rdfg-1> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
@prefix qpro:     <http://purl.org/eis/vocab/qpro#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix dqm:     <http://purl.org/eis/vocab/dqm#> .


# EBI Metrics

#Ontology Versioning Conciseness
ebiqm:hasOntologyVersionConcisenessMetric
	a	rdf:Property ;
	rdfs:subPropertyOf	daq:hasMetric ;
	rdfs:comment	"Links Conciseness Dimension with Ontology Versioning Conciseness Metric" ;
	rdfs:label	"Conciseness has extensional conciseness metric" ;
	rdfs:domain	dqm:Conciseness ;
	rdfs:range	ebiqm:OntologyVersionConcisenessMetric .

ebiqm:OntologyVersionConcisenessMetric
	a	rdfs:Class ;
	rdfs:subClassOf	daq:Metric ;
	daq:expectedDataType xsd:double ;
	rdfs:comment	"Provides a measure for checking singleton instances of the use-case specific defined owl:ontologyVersion property" ;
	rdfs:label	"Ontology version conciseness metric" .


#Obsolete Concepts in Ontology
ebiqm:hasObsoleteConceptsInOntologyMetric
	a	rdf:Property ;
	rdfs:subPropertyOf	daq:hasMetric ;
	rdfs:domain	dqm:Understandability ;
	rdfs:range	ebiqm:ObsoleteConceptsInOntologyMetric .

ebiqm:ObsoleteConceptsInOntologyMetric
	a	rdfs:Class ;
	rdfs:subClassOf	daq:Metric ;
	daq:expectedDataType xsd:double ;
	rdfs:comment	"Provides a measure for the number of classes and properties in an ontology which are marked as depricated. If an ontology is making lots of obsolete concepts between different versions, then this is an indicator that the ontology is going through a lot of changes, and is potentially in a state of poor quality" ;
	rdfs:label	"Obsolete concepts in ontology metric" .

#Synonym Usage in Ontology Classes
ebiqm:hasSynonymUsageMetric
	a	rdf:Property ;
	rdfs:subPropertyOf	daq:hasMetric ;
	rdfs:domain	dqm:SyntacticValidity ;
	rdfs:range	ebiqm:SynonymUsageMetric .

ebiqm:SynonymUsageMetric
	a	rdfs:Class ;
	rdfs:subClassOf	daq:Metric ;
	daq:expectedDataType xsd:double ;
	rdfs:comment	"Measures the number of classes which has a synonym <efo:alternative_term> described." ;
	rdfs:label	"Synonym usage metric" .

#POBO Definition Usage
ebiqm:hasPOBODefinitionUsageMetric
	a	rdf:Property ;
	rdfs:subPropertyOf	daq:hasMetric ;
	rdfs:domain	dqm:SyntacticValidity ;
	rdfs:range	ebiqm:POBODefinitionUsageMetric .

ebiqm:POBODefinitionUsageMetric
	a	rdfs:Class ;
	rdfs:subClassOf	daq:Metric ;
	daq:expectedDataType xsd:double ;
	rdfs:comment	"Provides a measure for an Ontology checking the usage of <pobo:def> in defined classes." ;
	rdfs:label	"POBO definition usage metric" .

ebiqm:hasDefinedOntologyAuthorMetric
	a	rdf:Property ;
	rdfs:subPropertyOf	daq:hasMetric ;
	rdfs:domain	dqm:SyntacticValidity ;
	rdfs:range	ebiqm:DefinedOntologyAuthorMetric .

ebiqm:DefinedOntologyAuthorMetric
	a	rdfs:Class ;
	rdfs:subClassOf	daq:Metric ;
	daq:expectedDataType xsd:double ;
	rdfs:comment	"Checks whether the creator <efo:creator> is defined in the ontology." ;
	rdfs:label	"Defined ontology author" .


ebiqm:OBOFoundryMetric
	a	rdfs:Class ;
	rdfs:subClassOf	daq:Metric ;
	daq:expectedDataType xsd:double ;
	rdfs:comment "Detects non reputable resources by retrieving URI of resources from data sets and comparing them with URI found in reputable resources." ;
	rdfs:label "OBO foundry metric" .

ebiqm:hasOBOFoundryMetric
	a	rdf:Property ;
	rdfs:subPropertyOf	daq:hasMetric ;
	rdfs:domain	dqm:Provenance ;
	rdfs:range	ebiqm:OBOFoundryMetric .
{'fraction_non_alphanumeric': 0.09203023471688106, 'fraction_numerical': 0.010210847367723114, 'mean_word_length': 5.321877619446773, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 15, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4554919', 'n_tokens_mistral': 2936, 'n_tokens_neox': 2821, 'n_words': 636}