Molecular modelers often face the challenge of efficiently working with models that include complex data attributes. In SAMSON, the Property Model Node Specification Language (NSL) attributes provide a powerful way to manage and filter nodes within molecular designs. This blog post introduces the concept of property model attributes and explains how they can streamline your modeling workflow.
What Are Property Model Attributes?
The propertyModel attribute space, with the short name pm, is a specific domain in SAMSON. It allows molecular modelers to specify and interact with nodes that belong to property models. These attributes help determine properties like visibility, selection, presence of materials, and more.
Key Property Model Attributes and Their Usage
The property model attribute space includes several inherited attributes that are critical in managing molecular models effectively. Below, we summarize the most important ones:
- hasMaterial (
pm.hm): This attribute indicates whether a property model node has material data. Possible values aretrueorfalse. Example expressions:pm.hm,not pm.hm. - hidden (
pm.h): This defines whether a node is hidden. Possible values aretrueorfalse. Example usage:pm.h,not pm.h. - name (
pm.n): Represents the name of the node, working with string expressions. Example usage includes:pm.n "A",pm.n "L*". - ownsMaterial (
pm.om): Indicates whether the node owns material data. Example:pm.om. - visible (
pm.v): States whether a node is visible. Example expressions:pm.v,not pm.v.
Each of these attributes can be used in NSL queries to filter and manipulate nodes efficiently, making it easier to focus on specific aspects of molecular models during crucial design stages.
Practical Benefits for Molecular Modelers
Let’s consider a real-world scenario: Imagine you’re working on a large molecular model where only specific nodes corresponding to visible or material-containing data nodes are essential for your current task. Instead of manually inspecting each node, you can use queries like pm.hm and pm.v to extract relevant parts of the model in seconds.
Additionally, the flexibility these attributes provide—such as managing selection states (pm.selected) or toggling visibility based on conditions (pm.vf)—can save significant time and reduce cognitive overload, helping you focus entirely on the scientific insights your model reveals.
To ensure better composability, property model attributes also inherit behaviors from the more general node attribute space in SAMSON, preserving compatibility and consistency across the platform.
Learn More and Explore
The Property Model attribute space is a cornerstone of efficient modeling workflows in SAMSON, whether you’re filtering node visibility, managing material data, or organizing complex models. For a complete list of attributes and detailed documentation, visit the property model documentation page.
SAMSON and all SAMSON Extensions are free for non-commercial use. You can download SAMSON at www.samson-connect.net.
