UNPKG

semantic-network

Version:

A utility library for manipulating a list of links that form a semantic interface to a network of resources.

7 lines (4 loc) 506 B
# What is the Data Mapper pattern? Semantic Network is primarily a series of utilities to manage application state. Using the Data Mapper approach, you define all your query methods in separate classes called "Resources", and you save, remove, and load objects using . In data mapper your resources are very dumb - they just define their properties. Simply said, data mapper is an approach to access your database within repositories instead of models. You can read more about data mapper on Wikipedia.