123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118(*********************************************************************************)(* OCaml-RDF *)(* *)(* Copyright (C) 2012-2024 Institut National de Recherche en Informatique *)(* et en Automatique. All rights reserved. *)(* *)(* This program is free software; you can redistribute it and/or modify *)(* it under the terms of the GNU Lesser General Public License version *)(* 3 as published by the Free Software Foundation. *)(* *)(* This program is distributed in the hope that it will be useful, *)(* but WITHOUT ANY WARRANTY; without even the implied warranty of *)(* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *)(* GNU General Public License for more details. *)(* *)(* You should have received a copy of the GNU General Public License *)(* along with this program; if not, write to the Free Software *)(* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA *)(* 02111-1307 USA *)(* *)(* Contact: Maxence.Guesdon@inria.fr *)(* *)(*********************************************************************************)letearl_str="http://www.w3.org/ns/earl#";;letearl=Iri.of_stringearl_str;;letearl_s=Iri.of_string(earl_str^s);;letc_Assertion=earl_"Assertion";;letc_Assertor=earl_"Assertor";;letc_CannotTell=earl_"CannotTell";;letc_Fail=earl_"Fail";;letc_NotApplicable=earl_"NotApplicable";;letc_NotTested=earl_"NotTested";;letc_OutcomeValue=earl_"OutcomeValue";;letc_Pass=earl_"Pass";;letc_Software=earl_"Software";;letc_TestCase=earl_"TestCase";;letc_TestCriterion=earl_"TestCriterion";;letc_TestMode=earl_"TestMode";;letc_TestRequirement=earl_"TestRequirement";;letc_TestResult=earl_"TestResult";;letc_TestSubject=earl_"TestSubject";;letassertedBy=earl_"assertedBy";;letinfo=earl_"info";;letmainAssertor=earl_"mainAssertor";;letmode=earl_"mode";;letoutcome=earl_"outcome";;letpointer=earl_"pointer";;letresult=earl_"result";;letsubject=earl_"subject";;lettest=earl_"test";;moduleOpen=structletearl_c_Assertion=c_Assertionletearl_c_Assertor=c_Assertorletearl_c_CannotTell=c_CannotTellletearl_c_Fail=c_Failletearl_c_NotApplicable=c_NotApplicableletearl_c_NotTested=c_NotTestedletearl_c_OutcomeValue=c_OutcomeValueletearl_c_Pass=c_Passletearl_c_Software=c_Softwareletearl_c_TestCase=c_TestCaseletearl_c_TestCriterion=c_TestCriterionletearl_c_TestMode=c_TestModeletearl_c_TestRequirement=c_TestRequirementletearl_c_TestResult=c_TestResultletearl_c_TestSubject=c_TestSubjectletearl_assertedBy=assertedByletearl_info=infoletearl_mainAssertor=mainAssertorletearl_mode=modeletearl_outcome=outcomeletearl_pointer=pointerletearl_result=resultletearl_subject=subjectletearl_test=testendclassfrom?subg=letsub=matchsubwithNone->Term.Iri(g.Graph.name())|Somet->tinobject(self)methodassertedBy=g.Graph.objects_of~sub~pred:assertedBymethodassertedBy_opt=matchself#assertedBywith[]->None|x::_->SomexmethodassertedBy_iris=Graph.only_iris(self#assertedBy)methodassertedBy_opt_iri=matchself#assertedBy_iriswith[]->None|x::_->Somexmethodinfo=Graph.literal_objects_ofg~sub~pred:infomethodinfo_opt=matchself#infowith[]->None|x::_->SomexmethodmainAssertor=g.Graph.objects_of~sub~pred:mainAssertormethodmainAssertor_opt=matchself#mainAssertorwith[]->None|x::_->SomexmethodmainAssertor_iris=Graph.only_iris(self#mainAssertor)methodmainAssertor_opt_iri=matchself#mainAssertor_iriswith[]->None|x::_->Somexmethodmode=g.Graph.objects_of~sub~pred:modemethodmode_opt=matchself#modewith[]->None|x::_->Somexmethodmode_iris=Graph.only_iris(self#mode)methodmode_opt_iri=matchself#mode_iriswith[]->None|x::_->Somexmethodoutcome=g.Graph.objects_of~sub~pred:outcomemethodoutcome_opt=matchself#outcomewith[]->None|x::_->Somexmethodoutcome_iris=Graph.only_iris(self#outcome)methodoutcome_opt_iri=matchself#outcome_iriswith[]->None|x::_->Somexmethodpointer=g.Graph.objects_of~sub~pred:pointermethodpointer_opt=matchself#pointerwith[]->None|x::_->Somexmethodpointer_iris=Graph.only_iris(self#pointer)methodpointer_opt_iri=matchself#pointer_iriswith[]->None|x::_->Somexmethodresult=g.Graph.objects_of~sub~pred:resultmethodresult_opt=matchself#resultwith[]->None|x::_->Somexmethodresult_iris=Graph.only_iris(self#result)methodresult_opt_iri=matchself#result_iriswith[]->None|x::_->Somexmethodsubject=g.Graph.objects_of~sub~pred:subjectmethodsubject_opt=matchself#subjectwith[]->None|x::_->Somexmethodsubject_iris=Graph.only_iris(self#subject)methodsubject_opt_iri=matchself#subject_iriswith[]->None|x::_->Somexmethodtest=g.Graph.objects_of~sub~pred:testmethodtest_opt=matchself#testwith[]->None|x::_->Somexmethodtest_iris=Graph.only_iris(self#test)methodtest_opt_iri=matchself#test_iriswith[]->None|x::_->Somexend