Пример #1
0
    def add_some_value(self, prop):
        """Create a new reference with the specified prop and an unspecified value

        :param prop: Property of the new reference
        :type prop: Property
        :return: New reference
        :rtype: Reference
        """
        check_prop_param(prop)
        return self._create(prop, None, "somevalue")
Пример #2
0
    def add_no_value(self, prop):
        """Create a new claim with the specified prop and no value

        :param prop: Property of the new claim
        :type prop: Property
        :return: New claim
        :rtype: Claim
        """
        check_prop_param(prop)
        return self._create(prop, None, "novalue")
Пример #3
0
    def add(self, prop, value):
        """Create a new reference with the specified prop and value

        :param prop: Property of the new reference
        :type prop: Property
        :param value: Value of the new reference
        :type value: Value
        :return: New reference
        :rtype: Reference
        """
        check_prop_param(prop)
        check_data_type(value, prop)
        return self._create(prop, value, "value")