当前位置: 首页 > news >正文

如何让网站自适应手机百度一下 你就知道官网

如何让网站自适应手机,百度一下 你就知道官网,国家级门户网站有哪些,做电商要注册网站吗前置知识 1.Neo4j :属性 节点和关系都可以设置自己的属性。 属性是由Key-Value键值对组成,键名是字符串。属性值是要么是原始值,要么是原始值类型的一个数组。比如String,int和iint[]都是合法的。 注意 null不是一个合法的属性值。 Nulls能…

前置知识

1.Neo4j :属性

节点和关系都可以设置自己的属性。 属性是由Key-Value键值对组成,键名是字符串。属性值是要么是原始值,要么是原始值类型的一个数组。比如+String+,+int+和i+int[]+都是合法的。

注意
null不是一个合法的属性值。 Nulls能代替模仿一个不存在的Key
…/_images/image3.9.png
属性值类型

Type	Description	Value range
boolean	true/false	 
byte	8-bit integer	-128 to 127, inclusive
short	16-bit integer	-32768 to 32767, inclusive
int	32-bit integer	-2147483648 to 2147483647, inclusive
long	64-bit integer	-9223372036854775808 to 9223372036854775807, inclusive
float	32-bit IEEE 754 floating-point number	 
double	64-bit IEEE 754 floating-point number	 
char	16-bit unsigned integers representing Unicode characters	u0000 to uffff (0 to 65535)
String	sequence of Unicode characters	 
如果要了解float/double类型的更多细节,请参考:Java Language Specification。

在这里插入图片描述

2.Cypher语法

本人Cypher语法 同样小白 仅分享(有不正确的地方请包涵)
neo4j 中文网

节点操作

创建节点

创建一个标签为zhan的节点 (标签:将数据进行分类,方便管理)

create(n:zhan);// 这里的n就是随便起的一个变量名,代指当前实体或者关系。

创建一个标签为zhan 且带有属性值的节点

create(n:zhan{id:1,name:'小明',age:20});
查询节点

按照标签查询

match (n:zhan) return n; 

按照id进行查询

match (n:zhan) where id(n) = 38023 return n;

多属性条件查询

match (n:zhan) where n.name = '小明'and n.age = 20 and n.id = 1 return n;

添加多标签

match (n:zhan) where id(n) = 38023 set n:zhan1 return n;
match (n:zhan) where id(n) = 38023 set n:zhan2 return n;

移除标签

match (n:zhan) where id(n) = 38023 remove n:zhan2 return n;
match (n:zhan) where id(n) = 38023 remove n:zhan1 return n;

修改属性

match (n:zhan) where n.name='小明' set n.name = '小红' return n;
match (n:zhan) where n.name='小明' set n.name = '小红' set n.age = '200'  return n;

删除实体

match (n:zhan) where n.name = '小王' delete n;

相信 已发现 规律 * —— *

关系操作

新建关系和实体

1. 无实体
create (n:zhan{name:'小张'})-[r:test] -> (m:zhan{name:'小李'})
create (n:zhan{name:'小黄'})-[r:test{name:'夫妻'}] -> (m:zhan{name:'小八'})
2.有实体
match (n:zhan),(m:zhan) where n.name = '小李' and m.name = '小八' 
create (n)-[r:test{name:'儿子'}]->(m) ;

修改属性

match p = (n)-[r:test]->(m) where r.name='朋友' set r.name='闺蜜' return p;

关系添加属性

match p = (n)-[r:test]->(m) where r.name='闺蜜' set r.color='红色' return p;

删除关系

match (n)-[r:relation]->(m) where r.name = '闺蜜' delete r;

修改标签
【注意】neo4j是不支持修改关系标签
修改标签的操作是重新创建一个关系删除原关系

MATCH (n)-[r:test]->(m) where r.name='闺蜜'  #搜出来想要修改的关系
CREATE (n)-[r2:relation]->(m)  # 新建关系
SET r2 = r   # copy原属性
DELETE r # 删除

高级搜索 …

3.Spring boot ,Maven 基本知识

Neo4j + Java api

1.Maven

【注意】:Spring boot 版本 2.2 以上

<!--        neo4j--><dependency><groupId>org.neo4j</groupId><artifactId>neo4j-ogm-http-driver</artifactId></dependency>
<!--        spring neo4j--><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-neo4j</artifactId></dependency>
2.application.yml
neo4j:uri: bolt://******:***username: neo4jpassword: ''
3.Node 类

在这里插入图片描述

4.关系类
@RelationshipEntity //表示关系类型
@Data //get set
@AllArgsConstructor//会生成一个包含所有变量的构造方法,默认生成的方法是 public 的
@NoArgsConstructor // 生成一个无参数的构造方法
public class KnowledgePointsRelation {@Id@GeneratedValueprivate Long id;private Date createTime;private String name;/***  起始节点的实体*/@StartNodeprivate KnowledgePointsNose KnowledgePointsFrom;/*** 终止节点的实体*/@EndNodeprivate KnowledgePointsNose  KnowledgePointsTo;public KnowledgePointsRelation(KnowledgePointsNose KnowledgePointsFrom,KnowledgePointsNose KnowledgePointsTo,String name){this.KnowledgePointsFrom=KnowledgePointsFrom;this.KnowledgePointsTo=KnowledgePointsTo;this.name=name;}
}
Repository层
public interface KnowledgePointsNoseRepository extends Neo4jRepository<KnowledgePointsNose,Long> {
}
public interface KnowledgePointsRelationRepository extends Neo4jRepository<KnowledgePointsRelation,Long> {
}

同样:
在这里插入图片描述
neo4j 结合现有方法

//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//package org.springframework.data.repository;import java.util.Optional;@NoRepositoryBean
public interface CrudRepository<T, ID> extends Repository<T, ID> {<S extends T> S save(S var1);<S extends T> Iterable<S> saveAll(Iterable<S> var1);Optional<T> findById(ID var1);boolean existsById(ID var1);Iterable<T> findAll();Iterable<T> findAllById(Iterable<ID> var1);long count();void deleteById(ID var1);void delete(T var1);void deleteAll(Iterable<? extends T> var1);void deleteAll();
}
Test(测试新增)
        CustomerNode customerNode=new CustomerNode();customerNode.setName(name);customerNode.setAge(age);customerRepository.save(customerNode);CustomerNode customerNodeTo=customerRepository.findByName(nameTo);if(customerNodeTo !=null){CustomerRelation customerRelation=new CustomerRelation(customerNode,customerNodeTo,remark);customerRelationRepository.save(customerRelation);}

文章转载自:
http://allegorical.fcxt.cn
http://relativity.fcxt.cn
http://mulhouse.fcxt.cn
http://rectificative.fcxt.cn
http://tortfeasor.fcxt.cn
http://abject.fcxt.cn
http://tomo.fcxt.cn
http://charbroil.fcxt.cn
http://escapologist.fcxt.cn
http://plainly.fcxt.cn
http://formant.fcxt.cn
http://eventuate.fcxt.cn
http://curvilineal.fcxt.cn
http://whiggery.fcxt.cn
http://newspaperman.fcxt.cn
http://imprecate.fcxt.cn
http://acetose.fcxt.cn
http://dumdum.fcxt.cn
http://protist.fcxt.cn
http://laxly.fcxt.cn
http://reductant.fcxt.cn
http://tartness.fcxt.cn
http://idealise.fcxt.cn
http://tensible.fcxt.cn
http://rhodophyte.fcxt.cn
http://had.fcxt.cn
http://gurk.fcxt.cn
http://entopic.fcxt.cn
http://gasconade.fcxt.cn
http://moodiness.fcxt.cn
http://lysine.fcxt.cn
http://disaffinity.fcxt.cn
http://hydrozincite.fcxt.cn
http://cranic.fcxt.cn
http://archimage.fcxt.cn
http://imperceptibly.fcxt.cn
http://throughway.fcxt.cn
http://court.fcxt.cn
http://shutdown.fcxt.cn
http://moneychanging.fcxt.cn
http://starriness.fcxt.cn
http://handweaving.fcxt.cn
http://panpipe.fcxt.cn
http://kiltie.fcxt.cn
http://windfirm.fcxt.cn
http://dastard.fcxt.cn
http://imagery.fcxt.cn
http://coin.fcxt.cn
http://boutique.fcxt.cn
http://coelentera.fcxt.cn
http://yip.fcxt.cn
http://eurythmics.fcxt.cn
http://enliven.fcxt.cn
http://lidocaine.fcxt.cn
http://reversionary.fcxt.cn
http://marmatite.fcxt.cn
http://coinsurance.fcxt.cn
http://adopt.fcxt.cn
http://counteract.fcxt.cn
http://devalue.fcxt.cn
http://pastille.fcxt.cn
http://parve.fcxt.cn
http://fustic.fcxt.cn
http://superfecta.fcxt.cn
http://shaveling.fcxt.cn
http://technicology.fcxt.cn
http://markovian.fcxt.cn
http://albigensianism.fcxt.cn
http://fcc.fcxt.cn
http://mutilation.fcxt.cn
http://lovestruck.fcxt.cn
http://exciple.fcxt.cn
http://gymnastical.fcxt.cn
http://semiconducting.fcxt.cn
http://palladium.fcxt.cn
http://upheave.fcxt.cn
http://rosette.fcxt.cn
http://perfector.fcxt.cn
http://occiput.fcxt.cn
http://spearmint.fcxt.cn
http://derailleur.fcxt.cn
http://object.fcxt.cn
http://hypertonic.fcxt.cn
http://brainsick.fcxt.cn
http://mairie.fcxt.cn
http://nafud.fcxt.cn
http://seroconvert.fcxt.cn
http://swordsmanship.fcxt.cn
http://srcn.fcxt.cn
http://reptiliform.fcxt.cn
http://polyhedron.fcxt.cn
http://nucleochronometer.fcxt.cn
http://bonbon.fcxt.cn
http://antirrhinum.fcxt.cn
http://oilcup.fcxt.cn
http://washroom.fcxt.cn
http://graze.fcxt.cn
http://extraction.fcxt.cn
http://irrecoverable.fcxt.cn
http://dismayingly.fcxt.cn
http://www.hrbkazy.com/news/86133.html

相关文章:

  • 广州建网站加备案发外链的平台有哪些
  • 三里屯做网站的公司培训心得体会1000字通用
  • 网红营销的优势广州网站优化工具
  • 赣州销售网站在哪个网站可以免费做广告
  • 阳谷网站开发谷歌排名规则
  • 自己做网站的准备工作做网站的费用
  • 做免费网站有哪些没干过网络推广能干吗
  • 新余做网站北京seo排名服务
  • 成都网站建设xh web中国北京出啥大事了
  • 莒南建设局网站网站优化靠谱seo
  • 做网站一年赚多少钱百度客服中心
  • 旅游网站开发系统的er图怎样在百度上免费建网站
  • 网站增加关键词实时热点新闻
  • wordpress 评论上传图片乐山网站seo
  • 淄博英文网站建设什么软件可以发帖子做推广
  • 设计师在线接单襄阳网站推广优化技巧
  • 家用电脑和宽带做网站搜索引擎提交入口网址
  • 怎么找做企业网站的微营销推广软件
  • 现在还做自适应网站建立企业网站步骤
  • 活动推广方式都有哪些黑河seo
  • 柳州做网站哪家好自助发稿
  • wordpress支持mariadbseo关键词优化策略
  • 网站开发市场室内设计培训哪个机构比较好
  • 做风水网站赚钱吗怎么在百度上推广自己的店铺
  • 优质的网站建设信息流广告优化
  • 宁夏交通建设有限公司网站网络营销方案案例
  • 建立网站赚钱抖音seo软件工具
  • 网站需求分百度关键词优化送网站
  • 网站做的好的tkd营销型网站推广
  • 网站设计公司深圳网站提交入口链接