<commit_before>@prefix rdf:    <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix : 		<http://fishdelish.cs.man.ac.uk/rdf/vocab/resource/> .
@prefix rdfs:	<http://www.w3.org/2000/01/rdf-schema#> .
@prefix mf:     <http://obda.org/quest/tests/test-manifest#> .
@prefix qt:     <http://obda.org/quest/tests/test-query#> .
@prefix obdat:  <http://obda.org/quest/tests/test-scenario#> .

<>  rdf:type mf:Manifest ;
    rdfs:label "StockExchange Simple CQ Queries" ;
    mf:entries
    ( 
      :addresses
      :addresses-id
      :person-addresses
      :stocktraders
      :brokers-workfor-themselves
      :brokers-workfor-physical
      :brokers-workfor-legal
      :brokers-workfor-legal-physical
      :transactions-finantialinstrument
      :transaction-stock-type
      :transaction-offer-stock
    ) .

:addresses rdf:type mf:QueryEvaluationTest ;
    mf:name    "Q1: Select distinct addresses" ;
    obdat:approval obdat:Approved ;
    obdat:approvedBy <http://ceur-ws.org/Vol-943/SSWS_HPCSW2012_paper1.pdf> ;
    mf:action
            [ qt:query <addresses.rq> ] ;
    mf:result <addresses.ttl> ;
    mf:knowledgebase <stockexchange.owl> ;
    mf:mappings <stockexchange-h2.obda> .
    
:addresses-id rdf:type mf:QueryEvaluationTest ;
    mf:name    "Q2: Select distinct addresses diff formulation" ;
    obdat:approval obdat:Approved ;
    obdat:approvedBy <http://ceur-ws.org/Vol-943/SSWS_HPCSW2012_paper1.pdf> ;
    mf:action
            [ qt:query <addresses-id.rq> ] ;
    mf:result <addresses-id.ttl> ;
    mf:knowledgebase <stockexchange.owl> ;
    mf:mappings <stockexchange-h2.obda> .

:person-addresses rdf:type mf:QueryEvaluationTest ;
    mf:name    "Q3: Get distinct persons and their addresses" ;
    obdat:approval obdat:Approved ;
    obdat:approvedBy <http://ceur-ws.org/Vol-943/SSWS_HPCSW2012_paper1.pdf> ;
    mf:action
            [ qt:query <person-addresses.rq> ] ;
    mf:result <person-addresses.ttl> ;
    mf:knowledgebase <stockexchange.owl> ;
    mf:mappings <stockexchange-h2.obda> .
    
:stocktraders rdf:type mf:QueryEvaluationTest ;
    mf:name    "Q4: Get distinct stocktraders" ;
    obdat:approval obdat:Approved ;
    obdat:approvedBy <http://ceur-ws.org/Vol-943/SSWS_HPCSW2012_paper1.pdf> ;
    mf:action
            [ qt:query <stocktraders.rq> ] ;
    mf:result <stocktraders.ttl> ;
    mf:knowledgebase <stockexchange.owl> ;
    mf:mappings <stockexchange-h2.obda> .
    
:brokers-workfor-themselves rdf:type mf:QueryEvaluationTest ;
    mf:name    "Q5: Get brokers who tradeOnBehalfOf themselves" ;
    obdat:approval obdat:Approved ;
    obdat:approvedBy <http://ceur-ws.org/Vol-943/SSWS_HPCSW2012_paper1.pdf> ;
    mf:action
            [ qt:query <brokers-workfor-themselves.rq> ] ;
    mf:result <brokers-workfor-themselves.ttl> ;
    mf:knowledgebase <stockexchange.owl> ;
    mf:mappings <stockexchange-h2.obda> .
 
:brokers-workfor-physical rdf:type mf:QueryEvaluationTest ;
    mf:name    "Q6: Get brokers who tradeOnBehalfOf physical persons" ;
    obdat:approval obdat:Approved ;
    obdat:approvedBy <http://ceur-ws.org/Vol-943/SSWS_HPCSW2012_paper1.pdf> ;
    mf:action
            [ qt:query <brokers-workfor-physical.rq> ] ;
    mf:result <brokers-workfor-physical.ttl> ;
    mf:knowledgebase <stockexchange.owl> ;
    mf:mappings <stockexchange-h2.obda> .
    
:brokers-workfor-legal rdf:type mf:QueryEvaluationTest ;
    mf:name    "Q7: Get brokers who tradeOnBehalfOf legal persons" ;
    obdat:approval obdat:Approved ;
    obdat:approvedBy <http://ceur-ws.org/Vol-943/SSWS_HPCSW2012_paper1.pdf> ;
    mf:action
            [ qt:query <brokers-workfor-legal.rq> ] ;
    mf:result <brokers-workfor-legal.ttl> ;
    mf:knowledgebase <stockexchange.owl> ;
    mf:mappings <stockexchange-h2.obda> .
    
:brokers-workfor-legal-physical rdf:type mf:QueryEvaluationTest ;
    mf:name    "Q8: Get brokers who tradeOnBehalfOf a legal and a physical person" ;
    obdat:approval obdat:Approved ;
    obdat:approvedBy <http://ceur-ws.org/Vol-943/SSWS_HPCSW2012_paper1.pdf> ;
    mf:action
            [ qt:query <brokers-workfor-legal-physical.rq> ] ;
    mf:result <brokers-workfor-legal-physical.ttl> ;
    mf:knowledgebase <stockexchange.owl> ;
    mf:mappings <stockexchange-h2.obda> .
    
:transactions-finantialinstrument rdf:type mf:QueryEvaluationTest ;
    mf:name    "Q9: Get transactions of a finantial instrument" ;
    obdat:approval obdat:Approved ;
    obdat:approvedBy <http://ceur-ws.org/Vol-943/SSWS_HPCSW2012_paper1.pdf> ;
    mf:action
            [ qt:query <transactions-finantialinstrument.rq> ] ;
    mf:result <transactions-finantialinstrument.ttl> ;
    mf:knowledgebase <stockexchange.owl> ;
    mf:mappings <stockexchange-h2.obda> .
    
:transaction-stock-type rdf:type mf:QueryEvaluationTest ;
    mf:name    "Q10: Get transactions involving stocks" ;
    obdat:approval obdat:Approved ;
    obdat:approvedBy <http://ceur-ws.org/Vol-943/SSWS_HPCSW2012_paper1.pdf> ;
    mf:action
            [ qt:query <transaction-stock-type.rq> ] ;
    mf:result <transaction-stock-type.ttl> ;
    mf:knowledgebase <stockexchange.owl> ;
    mf:mappings <stockexchange-h2.obda> .

:transaction-offer-stock rdf:type mf:QueryEvaluationTest ;
    mf:name    "Q11: Get offers of stocks" ;
    obdat:approval obdat:Approved ;
    obdat:approvedBy <http://ceur-ws.org/Vol-943/SSWS_HPCSW2012_paper1.pdf> ;
    mf:action
            [ qt:query <transaction-offer-stock.rq> ] ;
    mf:result <transaction-offer-stock.ttl> ;
    mf:knowledgebase <stockexchange.owl> ;
    mf:mappings <stockexchange-h2.obda> .
    <commit_msg>Added regex filter query test on broker name<commit_after>@prefix rdf:    <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix : 		<http://fishdelish.cs.man.ac.uk/rdf/vocab/resource/> .
@prefix rdfs:	<http://www.w3.org/2000/01/rdf-schema#> .
@prefix mf:     <http://obda.org/quest/tests/test-manifest#> .
@prefix qt:     <http://obda.org/quest/tests/test-query#> .
@prefix obdat:  <http://obda.org/quest/tests/test-scenario#> .

<>  rdf:type mf:Manifest ;
    rdfs:label "StockExchange Simple CQ Queries" ;
    mf:entries
    ( 
      :addresses
      :addresses-id
      :person-addresses
      :stocktraders
      :brokers-workfor-themselves
      :brokers-workfor-physical
      :brokers-workfor-legal
      :brokers-workfor-legal-physical
      :transactions-finantialinstrument
      :transaction-stock-type
      :transaction-offer-stock
    ) .

:addresses rdf:type mf:QueryEvaluationTest ;
    mf:name    "Q1: Select distinct addresses" ;
    obdat:approval obdat:Approved ;
    obdat:approvedBy <http://ceur-ws.org/Vol-943/SSWS_HPCSW2012_paper1.pdf> ;
    mf:action
            [ qt:query <addresses.rq> ] ;
    mf:result <addresses.ttl> ;
    mf:knowledgebase <stockexchange.owl> ;
    mf:mappings <stockexchange-h2.obda> .
    
:addresses-id rdf:type mf:QueryEvaluationTest ;
    mf:name    "Q2: Select distinct addresses diff formulation" ;
    obdat:approval obdat:Approved ;
    obdat:approvedBy <http://ceur-ws.org/Vol-943/SSWS_HPCSW2012_paper1.pdf> ;
    mf:action
            [ qt:query <addresses-id.rq> ] ;
    mf:result <addresses-id.ttl> ;
    mf:knowledgebase <stockexchange.owl> ;
    mf:mappings <stockexchange-h2.obda> .

:person-addresses rdf:type mf:QueryEvaluationTest ;
    mf:name    "Q3: Get distinct persons and their addresses" ;
    obdat:approval obdat:Approved ;
    obdat:approvedBy <http://ceur-ws.org/Vol-943/SSWS_HPCSW2012_paper1.pdf> ;
    mf:action
            [ qt:query <person-addresses.rq> ] ;
    mf:result <person-addresses.ttl> ;
    mf:knowledgebase <stockexchange.owl> ;
    mf:mappings <stockexchange-h2.obda> .
    
:stocktraders rdf:type mf:QueryEvaluationTest ;
    mf:name    "Q4: Get distinct stocktraders" ;
    obdat:approval obdat:Approved ;
    obdat:approvedBy <http://ceur-ws.org/Vol-943/SSWS_HPCSW2012_paper1.pdf> ;
    mf:action
            [ qt:query <stocktraders.rq> ] ;
    mf:result <stocktraders.ttl> ;
    mf:knowledgebase <stockexchange.owl> ;
    mf:mappings <stockexchange-h2.obda> .
    
:brokers-workfor-themselves rdf:type mf:QueryEvaluationTest ;
    mf:name    "Q5: Get brokers who tradeOnBehalfOf themselves" ;
    obdat:approval obdat:Approved ;
    obdat:approvedBy <http://ceur-ws.org/Vol-943/SSWS_HPCSW2012_paper1.pdf> ;
    mf:action
            [ qt:query <brokers-workfor-themselves.rq> ] ;
    mf:result <brokers-workfor-themselves.ttl> ;
    mf:knowledgebase <stockexchange.owl> ;
    mf:mappings <stockexchange-h2.obda> .
 
:brokers-workfor-physical rdf:type mf:QueryEvaluationTest ;
    mf:name    "Q6: Get brokers who tradeOnBehalfOf physical persons" ;
    obdat:approval obdat:Approved ;
    obdat:approvedBy <http://ceur-ws.org/Vol-943/SSWS_HPCSW2012_paper1.pdf> ;
    mf:action
            [ qt:query <brokers-workfor-physical.rq> ] ;
    mf:result <brokers-workfor-physical.ttl> ;
    mf:knowledgebase <stockexchange.owl> ;
    mf:mappings <stockexchange-h2.obda> .
    
:brokers-workfor-legal rdf:type mf:QueryEvaluationTest ;
    mf:name    "Q7: Get brokers who tradeOnBehalfOf legal persons" ;
    obdat:approval obdat:Approved ;
    obdat:approvedBy <http://ceur-ws.org/Vol-943/SSWS_HPCSW2012_paper1.pdf> ;
    mf:action
            [ qt:query <brokers-workfor-legal.rq> ] ;
    mf:result <brokers-workfor-legal.ttl> ;
    mf:knowledgebase <stockexchange.owl> ;
    mf:mappings <stockexchange-h2.obda> .
    
:brokers-workfor-legal-physical rdf:type mf:QueryEvaluationTest ;
    mf:name    "Q8: Get brokers who tradeOnBehalfOf a legal and a physical person" ;
    obdat:approval obdat:Approved ;
    obdat:approvedBy <http://ceur-ws.org/Vol-943/SSWS_HPCSW2012_paper1.pdf> ;
    mf:action
            [ qt:query <brokers-workfor-legal-physical.rq> ] ;
    mf:result <brokers-workfor-legal-physical.ttl> ;
    mf:knowledgebase <stockexchange.owl> ;
    mf:mappings <stockexchange-h2.obda> .
    
:transactions-finantialinstrument rdf:type mf:QueryEvaluationTest ;
    mf:name    "Q9: Get transactions of a finantial instrument" ;
    obdat:approval obdat:Approved ;
    obdat:approvedBy <http://ceur-ws.org/Vol-943/SSWS_HPCSW2012_paper1.pdf> ;
    mf:action
            [ qt:query <transactions-finantialinstrument.rq> ] ;
    mf:result <transactions-finantialinstrument.ttl> ;
    mf:knowledgebase <stockexchange.owl> ;
    mf:mappings <stockexchange-h2.obda> .
    
:transaction-stock-type rdf:type mf:QueryEvaluationTest ;
    mf:name    "Q10: Get transactions involving stocks" ;
    obdat:approval obdat:Approved ;
    obdat:approvedBy <http://ceur-ws.org/Vol-943/SSWS_HPCSW2012_paper1.pdf> ;
    mf:action
            [ qt:query <transaction-stock-type.rq> ] ;
    mf:result <transaction-stock-type.ttl> ;
    mf:knowledgebase <stockexchange.owl> ;
    mf:mappings <stockexchange-h2.obda> .

:transaction-offer-stock rdf:type mf:QueryEvaluationTest ;
    mf:name    "Q11: Get offers of stocks" ;
    obdat:approval obdat:Approved ;
    obdat:approvedBy <http://ceur-ws.org/Vol-943/SSWS_HPCSW2012_paper1.pdf> ;
    mf:action
            [ qt:query <transaction-offer-stock.rq> ] ;
    mf:result <transaction-offer-stock.ttl> ;
    mf:knowledgebase <stockexchange.owl> ;
    mf:mappings <stockexchange-h2.obda> .
    
    
:transaction-offer-stock rdf:type mf:QueryEvaluationTest ;
    mf:name    "Q12: Get broker from regex on name" ;
    obdat:approval obdat:Approved ;
    obdat:approvedBy "<NAME>" ;
    mf:action
            [ qt:query <broker-regex-name.rq> ] ;
    mf:result <broker-regex-name.ttl> ;
    mf:knowledgebase <stockexchange.owl> ;
    mf:mappings <stockexchange-h2.obda> .
    
{'fraction_non_alphanumeric': 0.12830904544278693, 'fraction_numerical': 0.02233336207639907, 'mean_word_length': 3.2686786897313214, 'pattern_counts': {'":': 0, '<': 132, '<?xml version=': 0, '>': 132, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '6039540', 'n_tokens_mistral': 4782, 'n_tokens_neox': 4396, 'n_words': 615}