Method and apparatus for managing knowledge base, device and medium
AssigneeBeijing Baidu Netcom Science Technology Co., Ltd.
InventorsWeiyu Wang, Chao Lu, Yong Zhu
Life of this patent
Estimating the term…
Abstract
Exemplary embodiments of the present disclosure provide a method and apparatus for managing a knowledge base, a device and a computer readable storage medium. The method for managing a knowledge base includes: forking, in response to receiving a request for modification of a rule for a first namespace, the rule to the first namespace, the rule being used to constrain structured data in a knowledge base; modifying, based on the request for modification of the rule, the rule in the first namespace; and adding the modified rule to a rule base associated with the knowledge base.
Claims17
A method for managing knowledge bases, comprising:
- setting a plurality of namespaces associated with different users, wherein the plurality of namespaces comprises a first namespace configured to be used by a first user to modify a rule to constrain structured data in a first knowledge base, and a second namespace configured to be used by a second user to modify the rule to constrain structured data in a second knowledge base, wherein the rule comprises a representation norm used to constrain structured data;
- forking, in response to receiving a request for modification of the rule for the first namespace, the rule to the first namespace from a rule base or from the second namespace different from the first namespace, the rule being used to constrain structured data in the knowledge bases comprising the first knowledge base and the second knowledge base;
- modifying, based on the request for modification of the rule, the rule in the first namespace;
- establishing the first knowledge base by using the modified rule in the first namespace;
- adding the modified rule to the rule base associated with the knowledge bases;
- retaining a dependency between the rule and the modified rule;
- and
- recording an operation of adding the modified rule.
An apparatus for managing knowledge bases, comprising:
- at least one processor;
- and
- a memory storing instructions, wherein the instructions when executed by the at least one processor, cause the at least one processor to perform operations, the operations comprising:
- setting a plurality of namespaces associated with different users, wherein the plurality of namespaces comprises a first namespace configured to be used by a first user to modify a rule to constrain structured data in a first knowledge base, and a second namespace configured to be used by a second user to modify the rule to constrain structured data in a second knowledge base, wherein the rule comprises a representation norm used to constrain structured data;
- forking, in response to receiving a request for modification of the rule for the first namespace, the rule to the first namespace from a rule base or from the second namespace different from the first namespace, the rule being used to constrain structured data in the knowledge bases comprising the first knowledge base and the second knowledge base;
- modifying, based on the request for modification of the rule, the rule in the first namespace;
- establishing the first knowledge base by using the modified rule in the first namespace;
- adding the modified rule to the rule base associated with the knowledge bases;
- retaining a dependency between the rule and the modified rule;
- and
- recording an operation of adding the modified rule.
A non-transitory computer readable storage medium storing a computer program, wherein the computer program, when executed by a processor, causes the processor to perform operations, the operations comprising:
- setting a plurality of namespaces associated with different users, wherein the plurality of namespaces comprises a first namespace configured to be used by a first user to modify a rule to constrain structured data in a first knowledge base, and a second namespace configured to be used by a second user to modify the rule to constrain structured data in a second knowledge base, wherein the rule comprises a representation norm used to constrain structured data;
- forking, in response to receiving a request for modification of the rule for the first namespace, the rule to the first namespace from a rule base or from the second namespace different from the first namespace, the rule being used to constrain structured data in knowledge bases comprising the first knowledge base and the second knowledge base;
- modifying, based on the request for modification of the rule, the rule in the first namespace;
- establishing the first knowledge base by using the modified rule in the first namespace;
- adding the modified rule to the rule base associated with the knowledge bases;
- retaining a dependency between the rule and the modified rule;
- and
- recording an operation of adding the modified rule.
Dependencies are inferred from the claim text.