MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / get_class

Method get_class

src/bsdd/bsdd.py:757–783  ·  view source on GitHub ↗

Get Class details this API replaces Classification

(
        self,
        class_uri: str,
        include_class_properties: bool = True,
        include_child_class_reference: bool = True,
        include_class_relations: bool = True,
        include_reverse_relations: bool = False,
        reverse_relation_dictionary_uris: Optional[list[str]] = None,
        language_code: str = "",
        version: int = 1,
    )

Source from the content-addressed store, hash-verified

755 return self.get(endpoint, params)
756
757 def get_class(
758 self,
759 class_uri: str,
760 include_class_properties: bool = True,
761 include_child_class_reference: bool = True,
762 include_class_relations: bool = True,
763 include_reverse_relations: bool = False,
764 reverse_relation_dictionary_uris: Optional[list[str]] = None,
765 language_code: str = "",
766 version: int = 1,
767 ) -> ClassContractV1:
768 """
769 Get Class details
770 this API replaces Classification
771 """
772 endpoint = f"Class/v{version}"
773 params = {
774 "Uri": class_uri,
775 "includeClassProperties": include_class_properties,
776 "includeChildClassReferences": include_child_class_reference,
777 "includeClassRelations": include_class_relations,
778 "IncludeReverseRelations": include_reverse_relations,
779 "ReverseRelationDictionaryUris": reverse_relation_dictionary_uris,
780 "languageCode": language_code,
781 }
782 params = {k: v for k, v in params.items() if v is not None}
783 return self.get(endpoint, params)
784
785 def get_class_relations(
786 self,

Callers 1

test_get_classFunction · 0.45

Calls 2

getMethod · 0.95
itemsMethod · 0.45

Tested by 1

test_get_classFunction · 0.36