Web3.0 Commerce Ontology

In creating our Web3.0 Catalog Services we quickly found that we needed a way to provide a smart search capability.  

Our smart search needed to incorporate natural language techniques as well as some of the cool Artificial Intelligence capabilities.  To do this we needed to adopt an e-Commerce ontology that captured the richness of our Products, Assets, Providers, Offers within the overall e-Commerce flow.

POC4Commerce link

We chose to leverage concepts being developed within the POC4Commerce initiative.  This is an exciting project that is laser focused on providing ontology solutions for NFT Asset based e-commerce eco-systems.

POC4Commerce, represents commercial agents and activities, goods, products, offerings, and services related with business and commerce.  link 

Here is an overview of the key concepts we've digested from their work.  We also discuss at the end how we were able to leverage these principles for our effort.

Six challenges facing the ecommerce ecosystem link :

Shortcomings of NFT blockchain (Probing the blockchain for identifying the appropriate NFT or smart contract).


e-Commerce workflow 

Things to consider with POC4Commerce


POC4Commerce is part of ONTOCHAIN project

ONTOCHAIN project’s ambition is to advance and federate blockchain and semantic technologies to enable a more human-centered Internet and to foster new opportunities in the data market and in a new generation of decentralized applications. 

Threats


ONTOCHAIN Architectural Layers


Ontology Representation

This block seeks to define new ways for implementing ontologies with the use of Blockchain. Common components of ontologies include: 


POC4COMMERCE: Practical ONTOCHAIN for Commerce 




Project ontology sources:  

Project Python Modules

eCommerce workflow covered by POC4Commerce

Local Project

C:\ontologies\POC4COMMERCE-main\python


Getting POC4Commerce to work in Windows environment.  Issues we ran into are probably just newbies stuff and relating to Windows, but I wanted to capture them for future builds.

def _abbreviate(self, iri, create_if_missing = True):

   ...

if r == None:

  checkIri = '%' + iri

  r = self.execute("SELECT storid FROM resources WHERE iri like ? LIMIT 1", (checkIri,)).fetchone()

  if r: return r[0]




ocget-test.owl

 

<rdf:Description rdf:about="local-ontologies/ocgen-test.owl#batch2563Offering">

 <ns2:isOfferingAbout rdf:resource="local-ontologies/ocgen-test.owl#appleBatch2563"/>

 <ns3:hasSupplyChainManagement rdf:resource="local-ontologies/ocgen-test.owl#appleSupplyChainMan"/>

 <rdf:type rdf:resource="local-ontologies/oc-commerce.owl#AcceptedOffering"/>

 <rdf:type rdf:resource="local-ontologies/oc-commerce.owl#Offering"/>

</rdf:Description>


<rdf:Description rdf:about="local-ontologies/ocgen-test.owl#Bob">

 <oasis:performs rdf:resource="local-ontologies/ocgen-test.owl#valuateAppleOfferingTask"/>

 <oasis:performs rdf:resource="local-ontologies/ocgen-test.owl#acceptOffTask"/>

 <ns3:hasDigitalIdentity rdf:resource="local-ontologies/ocgen-test.owl#BobIdentity"/>

 <oasis:hasBehavior rdf:resource="local-ontologies/ocgen-test.owl#BobValuerBehavior"/>

 <rdf:type rdf:resource="OASIS-ontologies/oasis.owl#Agent"/>

 <oasis:hasBehavior rdf:resource="local-ontologies/ocgen-test.owl#bobOfferingBehavior"/>

</rdf:Description>


<rdf:Description rdf:about="local-ontologies/ocgen-test.owl#appleProducerAgent">

 <oasis:hasBehavior rdf:resource="local-ontologies/ocgen-test.owl#produceAppleBatchBehavior"/>

 <rdf:type rdf:resource="OASIS-ontologies/oasis.owl#Agent"/>

 <oasis:performs rdf:resource="local-ontologies/ocgen-test.owl#appleOfferingCreationTask"/>

 <ns3:hasDigitalIdentity rdf:resource="local-ontologies/ocgen-test.owl#appleProducerAgentIdentity"/>

 <oasis:hasBehavior rdf:resource="local-ontologies/ocgen-test.owl#AppleOfferingBehavior"/>

 <oasis:performs rdf:resource="local-ontologies/ocgen-test.owl#appleBachTask"/>

</rdf:Description>


entity: 'local-ontologies/ocgen-test.owl#batch2563Offering'

agent

operation

operationOn

typeOf


[

    "r3:",

    "[['?agent', 'ocgen-test.appleProducerAgent'], ['?operation', 'oasis-abox.publish'], ['?operationOn', 'ocgen-test.batch2563Offering'], ['?typeOf', 'oc-commerce.AcceptedOffering']]"

  ],

  [

    "r4:",

    "[['?agent', 'ocgen-test.appleProducerAgent'], ['?operation', 'oasis-abox.publish'], ['?operationOn', 'ocgen-test.batch2563Offering'], ['?typeOf', 'oc-commerce.Offering']]"

  ],

  [

    "r6:",

    "[['?agent', 'ocgen-test.Bob'], ['?operation', 'oasis-abox.accept'], ['?operationOn', 'ocgen-test.batch2563Offering'], ['?typeOf', 'oc-commerce.AcceptedOffering']]"

  ],

  [

    "r7:",

    "[['?agent', 'ocgen-test.Bob'], ['?operation', 'oasis-abox.accept'], ['?operationOn', 'ocgen-test.batch2563Offering'], ['?typeOf', 'oc-commerce.Offering']]"

  ]


Terms:

IRI (Internationalized Resource Identifier) within an RDF graph

An Oracle is a trusted off-chain program that can, at the request of a Smart Contract, examine real-world data and return it to the Smart Contract. 


Activities coming up and links

https://ontochain.ngi.eu/content/poc4commerce-practical-ontochain-commerce

Hackathon #2: Developing trustworthy applications for commerce & other services
30 June – 01 July 2023 | Online
From Friday 30 June 09:00am CEST to Saturday 01 July 2023 16:00 CEST

Overview: https://www.youtube.com/watch?v=MuY3slZwN4A

https://github.com/dfsantamaria/POC4COMMERCE

http://docs.oasis-open.org/semantic-ex/ro-soa/v1.0/pr01/see-rosoa-v1.0-pr01.html

 Ontology for Agents, Systems, and Integration of Services (in short, OASIS) 

https://www.researchgate.net/publication/346578791_Ontological_Smart_Contracts_in_OASIS_Ontology_for_Agents_Systems_and_Integration_of_Services

Web Ontology Language (OWL), Internet of Agents (IoA) 

ontological smart contracts in OASIS 

semantic web of things (SWoT) 

Blockchain Ontology with Dynamic Extensibility (BLONDiE) 


Good overview of POC4Commerce Ontology

https://github.com/dfsantamaria/POC4COMMERCE/blob/main/documentation/ONTOCHAIN_D1.pdf

Email: giamp@dmi.unict.it

Telephone: 095 7383072

Website: www.dmi.unict.it/giamp 


GoodRelations


Ontology blockchain network 


Latest code


OASIS last month

https://github.com/dfsantamaria/OASIS/tree/v2


Project

https://www.dmi.unict.it/santamaria/projects/oasis/oasis.php



Companies working in this area

https://origintrail.io/



iExec

The iExec Web3 Marketplace 

https://twitter.com/iExecAmb


NFTWatch

https://www.coexya.eu/en/references/what-is-nftwatch-project/

https://github.com/flyingrhinonz/nftwatch (not the same one)

https://ontochain.ngi.eu/content/nftwatch

ontologies included:  namely FOAF, cidoc-crm, DBpedia, VIVO and Event 



not sure if this is same project (ir ia nor

https://dorahacks.io/buidl/2411



OnToChain architecture overview

https://ontochain.ngi.eu/content/dkg


OnToChain

https://github.com/orgs/ONTOCHAIN/repositories


overview article

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9866539/


Offchain approach

https://ontochain.ngi.eu/content/desmo-ld



Related Project

GEONTOLOGY 




POC4Commerce People

https://ontochain.ngi.eu/content/poc4commerce-practical-ontochain-commerce


Folks using ontology

At least 7 users who use the marketplace and therefore the token.

ADOS
https://airtrace.io/blog/solutions/airtrace-decentralized-oracle-system
https://ontochain.ngi.eu/content/ados

DESMO-LD
https://github.com/vaimee/desmo/blob/main/imgs/architecture.jpg
https://github.com/vaimee/desmo-dapp
https://ontochain.ngi.eu/content/desmo-ld

KNOWLEDGEX
https://www.knowledgex.eu/
https://ontochain.ngi.eu/content/kx-knowledgex

MFSSIA
https://www.dymaxion-mfssia.com/mfssia/
https://www.researchgate.net/publication/360621555_A_Blockchain_Implementation_for_Configurable_Multi-Factor_Challenge-Set_Self-Sovereign_Identity_Authentication
https://ontochain.ngi.eu/content/mfssia

DLMD
https://ontochain.ngi.eu/content/dlmd-decentralised-last-mile-delivery

GEONTOLOGY
https://ontochain.ngi.eu/content/geontology

POC4COMMERCE
https://ontochain.ngi.eu/content/poc4commerce-practical-ontochain-commerce
https://github.com/dfsantamaria/POC4COMMERCE/blob/main/documentation/ONTOCHAIN_D4.pdf
https://raw.githubusercontent.com/dfsantamaria/POC4COMMERCE/main/documentation/ONTOCHAIN_D4.pdf


Knowledge Graph is key to composable commerce

https://www.linkedin.com/pulse/business-case-knowledge-graphs-composable-commerce-sana-remekie/


Standards 

Open Knowledge Network (OKN)

Prototypes,  Proto-OKN

University of Colorado, Boulder

Sponsor Application Deadline: 5:00pm MT June 20, 2023 link


Good overview of semantic search (coveo)

https://www.coveo.com/blog/decoding-shopper-intent-with-semantic-search/


academic articles

https://arxiv.org/pdf/2112.08589.pdf



Good overview articles

https://citeseerx.ist.psu.edu/document?repid=rep1&type=pdf&doi=c4188ee8a3ef7879d930daba457a8ae8c74dda70


CContology (Customer Complaint Ontology) 


Companies working on ecommerce solutions using Knowledge Graph, ChatGPT


Wordlift

https://wordlift.io/blog/en/taxonomy-seo-and-knowledge-graph/

good overview that leverage Wordlift

https://ipullrank.com/e-commerce-seo-product-knowledge-graph


TypeDB

TypeDB knowledge graphs 


lettria ontology management solutions


https://schemantra.com/


OASIS for ERC721

EthOn:  an ethereum ontology (2016) https://ethon.consensys.net/index.html 

BLONDiE: ...


OASIS for ERC721 (2019-02-01T07:24:44Z) 


Ethereum Node:  ethereum network

Deployment of smart contracts: BlockchainSmartContractCreation 

account creating the contract BlockchainSmartContractAccount 

user account: EOA-EthereumAccount  which is a BlockchainAccount 


Smart Contract that is created: BlockchainSmartContractAgent 

erc20 contract: EthereumERC20SmartContractAgent 

erc721 contract: EthereumERC721SmartContractAgent 




Interactions with smart contracts (calling methods on contract): EthereumSmartContractInteraction 


EthereumBlock, EthereumTransaction, Blockchain Transaction (EthereumSmartContract Interaction that initiated Transaction)

EthereumERC721SmartContractAgent

PROF-ONTO

OASIS project that focuses in on smart contract data modeling

https://github.com/dfsantamaria/ProfOnto


NFT EIP Recommendations


This proposal extends EIP-721 and EIP-5192 by introducing a standard for adding RDF triples to Soulbound Tokens (‘SBTs’) metadata. 

https://ethereum-magicians.org/t/eip-6239-semantic-soulbound-tokens/12334


Good overview of eip initiatives.  (https://www.abcde.com/ nft think tank)

https://medium.com/@ABCDE.com/abcde-after-studying-all-eips-we-summarized-9-future-directions-of-nfts-648c11f16a4f