123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139(*********************************************************************************)(* 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 *)(* *)(*********************************************************************************)includeActivitystreamsletendpoints=activitystreams_"endpoints"letfollowing=activitystreams_"following"letfollowers=activitystreams_"followers"letinbox=Ldp.inboxletliked=activitystreams_"liked"letshares=activitystreams_"shares"letlikes=activitystreams_"likes"letoauthAuthorizationEndpoint=activitystreams_"oauthAuthorizationEndpoint"letoauthTokenEndpoint=activitystreams_"oauthTokenEndpoint"letoutbox=activitystreams_"outbox"letpreferredUsername=activitystreams_"preferredUsername"letprovideClientKey=activitystreams_"provideClientKey"letproxyUrl=activitystreams_"proxyUrl"letsharedInbox=activitystreams_"sharedInbox"letsignClientKey=activitystreams_"signClientKey"letsource=activitystreams_"source"letstreams=activitystreams_"streams"letuploadMedia=activitystreams_"uploadMedia"moduleOpen=structincludeActivitystreams.Openletactivitypub_endpoints=endpointsletactivitypub_following=followingletactivitypub_followers=followersletactivitypub_inbox=inboxletactivitypub_liked=likedletactivitypub_shares=sharesletactivitypub_likes=likesletactivitypub_oauthAuthorizationEndpoint=oauthAuthorizationEndpointletactivitypub_oauthTokenEndpoint=oauthTokenEndpointletactivitypub_outbox=outboxletactivitypub_preferredUsername=preferredUsernameletactivitypub_provideClientKey=provideClientKeyletactivitypub_proxyUrl=proxyUrlletactivitypub_sharedInbox=sharedInboxletactivitypub_signClientKey=signClientKeyletactivitypub_source=sourceletactivitypub_streams=streamsletactivitypub_uploadMedia=uploadMediaendclassfrom?subg=letsub=matchsubwithNone->Term.Iri(g.Graph.name())|Somet->tinobject(self)inheritActivitystreams.from~subgmethodendpoints=g.Graph.objects_of~sub~pred:endpointsmethodendpoints_opt=matchself#endpointswith[]->None|x::_->Somexmethodendpoints_iris=Graph.only_iris(self#endpoints)methodfollowing=g.Graph.objects_of~sub~pred:followingmethodfollowing_opt=matchself#followingwith[]->None|x::_->Somexmethodfollowing_iris=Graph.only_iris(self#following)methodfollowers=g.Graph.objects_of~sub~pred:followersmethodfollowers_opt=matchself#followerswith[]->None|x::_->Somexmethodfollowers_iris=Graph.only_iris(self#followers)methodliked=g.Graph.objects_of~sub~pred:likedmethodliked_opt=matchself#likedwith[]->None|x::_->Somexmethodliked_iris=Graph.only_iris(self#liked)methodshares=g.Graph.objects_of~sub~pred:sharesmethodshares_opt=matchself#shareswith[]->None|x::_->Somexmethodshares_iris=Graph.only_iris(self#shares)methodlikes=g.Graph.objects_of~sub~pred:likesmethodlikes_opt=matchself#likeswith[]->None|x::_->Somexmethodlikes_iris=Graph.only_iris(self#likes)methodoauthAuthorizationEndpoint=g.Graph.objects_of~sub~pred:oauthAuthorizationEndpointmethodoauthAuthorizationEndpoint_opt=matchself#oauthAuthorizationEndpointwith[]->None|x::_->SomexmethodoauthAuthorizationEndpoint_iris=Graph.only_iris(self#oauthAuthorizationEndpoint)methodoauthTokenEndpoint=g.Graph.objects_of~sub~pred:oauthTokenEndpointmethodoauthTokenEndpoint_opt=matchself#oauthTokenEndpointwith[]->None|x::_->SomexmethodoauthTokenEndpoint_iris=Graph.only_iris(self#oauthTokenEndpoint)methodoutbox=g.Graph.objects_of~sub~pred:outboxmethodoutbox_opt=matchself#outboxwith[]->None|x::_->Somexmethodoutbox_iris=Graph.only_iris(self#outbox)methodpreferredUsername=g.Graph.objects_of~sub~pred:preferredUsernamemethodpreferredUsername_opt=matchself#preferredUsernamewith[]->None|x::_->SomexmethodprovideClientKey=g.Graph.objects_of~sub~pred:provideClientKeymethodprovideClientKey_opt=matchself#provideClientKeywith[]->None|x::_->SomexmethodprovideClientKey_iris=Graph.only_iris(self#provideClientKey)methodproxyUrl=g.Graph.objects_of~sub~pred:proxyUrlmethodproxyUrl_opt=matchself#proxyUrlwith[]->None|x::_->SomexmethodproxyUrl_iris=Graph.only_iris(self#proxyUrl)methodsharedInbox=g.Graph.objects_of~sub~pred:sharedInboxmethodsharedInbox_opt=matchself#sharedInboxwith[]->None|x::_->SomexmethodsharedInbox_iris=Graph.only_iris(self#sharedInbox)methodsignClientKey=g.Graph.objects_of~sub~pred:signClientKeymethodsignClientKey_opt=matchself#signClientKeywith[]->None|x::_->SomexmethodsignClientKey_iris=Graph.only_iris(self#signClientKey)methodsource=g.Graph.objects_of~sub~pred:sourcemethodsource_opt=matchself#sourcewith[]->None|x::_->Somexmethodstreams=g.Graph.objects_of~sub~pred:streamsmethodstreams_opt=matchself#streamswith[]->None|x::_->Somexmethodstreams_iris=Graph.only_iris(self#streams)methoduploadMedia=g.Graph.objects_of~sub~pred:uploadMediamethoduploadMedia_opt=matchself#uploadMediawith[]->None|x::_->SomexmethoduploadMedia_iris=Graph.only_iris(self#uploadMedia)end